本文整理汇总了Java中slender.services.core.projects.impl.ProjectListsServiceImpl类的典型用法代码示例。如果您正苦于以下问题:Java ProjectListsServiceImpl类的具体用法?Java ProjectListsServiceImpl怎么用?Java ProjectListsServiceImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ProjectListsServiceImpl类属于slender.services.core.projects.impl包,在下文中一共展示了ProjectListsServiceImpl类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getProjectUsers
import slender.services.core.projects.impl.ProjectListsServiceImpl; //导入依赖的package包/类
@POST
@Path("getProjectUsers")
@Override
public Response getProjectUsers(@FormParam("id") Integer projId) {
ProjectListsService service = new ProjectListsServiceImpl();
List<Users> users = service.getProjectUsers(projId);
return Response.ok(UserResponse.getResponseEntity(users)).build();
}
示例2: getProjectTasks
import slender.services.core.projects.impl.ProjectListsServiceImpl; //导入依赖的package包/类
@POST
@Path("getProjectTasks")
@Override
public Response getProjectTasks(@FormParam("id") Integer projId) {
ProjectListsService service = new ProjectListsServiceImpl();
List<Task> tasks = service.getProjectTasks(projId);
return Response.ok(TaskResponse.getResponseEntity(tasks)).build();
}
示例3: getProjectComments
import slender.services.core.projects.impl.ProjectListsServiceImpl; //导入依赖的package包/类
@POST
@Path("getProjectComments")
@Override
public Response getProjectComments(@FormParam("id") Integer projId) {
ProjectListsService service = new ProjectListsServiceImpl();
List<Comment> comments = service.getProjectComments(projId);
return Response.ok(CommentResponse.getResponseEntity(comments)).build();
}
示例4: testProjectUsers
import slender.services.core.projects.impl.ProjectListsServiceImpl; //导入依赖的package包/类
@Test
public void testProjectUsers() {
ProjectListsService service = new ProjectListsServiceImpl();
List<Users> users = service.getProjectUsers(TestVal.projectID);
Assert.assertEquals(users.size(), 2, "getProjectUsers");
Assert.assertEquals(users.get(0).getUsername().contains(TestVal.fString), true, "getProjectUsers");
}
示例5: testProjectTasks
import slender.services.core.projects.impl.ProjectListsServiceImpl; //导入依赖的package包/类
@Test
public void testProjectTasks() {
ProjectListsService service = new ProjectListsServiceImpl();
List<Task> tasks = service.getProjectTasks(TestVal.projectID);
Assert.assertEquals(tasks.size(), 1, "getProjectTasks");
Assert.assertEquals(tasks.get(0).getTaskName(), TestVal.fString, "getProjectTasks");
}
示例6: testProjectComments
import slender.services.core.projects.impl.ProjectListsServiceImpl; //导入依赖的package包/类
@Test
public void testProjectComments() {
ProjectListsService service = new ProjectListsServiceImpl();
List<Comment> comments = service.getProjectComments(TestVal.projectID);
Assert.assertEquals(comments.size(), 1, "getProjectComments");
Assert.assertEquals(comments.get(0).getComment(), TestVal.fString, "getProjectComments");
}