当前位置: 首页>>代码示例>>Java>>正文


Java ProjectListsServiceImpl类代码示例

本文整理汇总了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();
}
 
开发者ID:Slenderware,项目名称:SlenderRestAPI-Maven,代码行数:10,代码来源:ProjectsRestImpl.java

示例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();
}
 
开发者ID:Slenderware,项目名称:SlenderRestAPI-Maven,代码行数:10,代码来源:ProjectsRestImpl.java

示例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();
}
 
开发者ID:Slenderware,项目名称:SlenderRestAPI-Maven,代码行数:10,代码来源:ProjectsRestImpl.java

示例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");
}
 
开发者ID:Slenderware,项目名称:SlenderRestAPI-Maven,代码行数:9,代码来源:ProjectsServiceTest.java

示例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");
}
 
开发者ID:Slenderware,项目名称:SlenderRestAPI-Maven,代码行数:9,代码来源:ProjectsServiceTest.java

示例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");
}
 
开发者ID:Slenderware,项目名称:SlenderRestAPI-Maven,代码行数:9,代码来源:ProjectsServiceTest.java


注:本文中的slender.services.core.projects.impl.ProjectListsServiceImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。