use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.
the class OrgUserSeviceTest method testGetListOrgUserVO.
@Test
public void testGetListOrgUserVO() {
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
OrgAndOrgUserVO managerVO = new OrgAndOrgUserVO();
managerVO.setUsername(null);
managerVO.setRealname(null);
managerVO.setOrgName(null);
pageParameter.setParameter(managerVO);
pageParameter.setStart(1);
pageParameter.setPageSize(15);
pageResult = orgUserService.getListOrgUser(pageParameter);
Assert.assertNotNull("获取失败", pageResult);
}
use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.
the class PmphUserServiceTest method getListByUsernameAndRealname.
@Test
public void getListByUsernameAndRealname() {
PageResult pageResult = userService.getListByUsernameAndRealname("1", 1, 10);
Assert.assertNotNull("查找失败", pageResult);
}
use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.
the class SurveyQuestionServiceTest method listSurveyQuestion.
@SuppressWarnings({ "unused", "rawtypes", "unchecked" })
@Test
@Rollback(Const.ISROLLBACK)
public void listSurveyQuestion() {
SurveyQuestion surveyQuestion = this.addSurveyQuestions();
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
SurveyQuestionVO surveyQuestionVO = new SurveyQuestionVO();
pageParameter.setParameter(surveyQuestionVO);
pageParameter.setPageSize(10);
pageResult = surveyQuestionService.listSurveyQuestion(pageParameter);
Assert.assertNotNull("分页数据失败", pageResult);
}
use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.
the class SurveyServiceTest method listSurvey.
@SuppressWarnings({ "unused", "rawtypes", "unchecked" })
@Test
@Rollback(Const.ISROLLBACK)
public void listSurvey() {
Survey survey = this.addSurveys();
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
SurveyVO surveyVO = new SurveyVO();
pageParameter.setParameter(surveyVO);
pageParameter.setPageSize(10);
pageResult = surveyService.listSurvey(pageParameter);
Assert.assertNotNull("分页数据失败", pageResult);
}
use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.
the class SurveyTemplateServiceTest method listSurveyTemplateList.
@SuppressWarnings({ "unused", "rawtypes", "unchecked" })
@Test
@Rollback(Const.ISROLLBACK)
public void listSurveyTemplateList() {
SurveyTemplate surveyTemplate = this.addSurveyTemplates();
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
SurveyTemplateListVO surveyTemplateListVO = new SurveyTemplateListVO();
pageParameter.setParameter(surveyTemplateListVO);
pageParameter.setPageSize(10);
pageResult = surveyTemplateService.listSurveyTemplateList(pageParameter);
Assert.assertNotNull("分页数据失败", pageResult);
}
Aggregations