use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class PmphGroupMemberServiceTest method testListGroupMemberManagerVOs.
@Test
public void testListGroupMemberManagerVOs() {
pmphGroupMemberService.addPmphGroupMember(pmphGroupMember);
PageParameter pageParameter = new PageParameter<>(1, 20);
PmphGroupMemberManagerVO pmphGroupMemberManagerVO = new PmphGroupMemberManagerVO();
pmphGroupMemberManagerVO.setName(null);
pmphGroupMemberManagerVO.setGroupId(pmphGroupMember.getGroupId());
pageParameter.setParameter(pmphGroupMemberManagerVO);
Assert.assertNotNull("获取数据失败", pmphGroupMemberService.listGroupMemberManagerVOs(pageParameter));
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class PmphGroupMessageServiceTest method testListPmphGroupMessage.
@Test
public void testListPmphGroupMessage() {
pmphGroupMessageService.addPmphGroupMessage(pmphGroupMessage);
PageParameter<PmphGroupMessageVO> pageParameter = new PageParameter<>(1, 20);
PmphGroupMessageVO pmphGroupMessageVO = new PmphGroupMessageVO();
pmphGroupMessageVO.setGmtCreate(DateUtil.getCurrentTime());
pmphGroupMessageVO.setGroupId(pmphGroupMessage.getGroupId());
pageParameter.setParameter(pmphGroupMessageVO);
Assert.assertNotNull("获取数据失败", pmphGroupMessageService.listPmphGroupMessage(pageParameter));
}
use of com.bc.pmpheep.back.plugin.PageParameter 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.PageParameter 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.PageParameter 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