use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class SysOperationSeviceTest method testGetListSysOperation.
@Test
@Rollback(Const.ISROLLBACK)
public void testGetListSysOperation() {
PageParameter<SysOperation> pageParameter = new PageParameter<SysOperation>();
PageResult<SysOperation> pageResult = new PageResult<SysOperation>();
SysOperation sysOperation = new SysOperation(1L, "a", "a", DateUtil.getCurrentTime(), "/cms/content", "192.168.200.209", "aaaa", "pc");
pageParameter.setPageNumber(1);
pageParameter.setPageSize(10);
pageParameter.setParameter(sysOperation);
pageResult = sysOperationService.getListSysOperation(pageParameter);
Assert.assertNotNull("获取SysOperation列表失败", pageResult);
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class TopicServiceTest method testListCheckTopic.
@Test
public void testListCheckTopic() {
topicService.add(topic);
PageParameter<TopicDeclarationVO> pageParameter = new PageParameter<>(1, 5);
TopicDeclarationVO topicDeclarationVO = new TopicDeclarationVO();
topicDeclarationVO.setBookname(null);
topicDeclarationVO.setSubmitTime(null);
pageParameter.setParameter(topicDeclarationVO);
List<Long> progress = new ArrayList<>();
progress.add(1L);
progress.add(0L);
progress.add(2L);
progress.add(3L);
PageResult<TopicDeclarationVO> declarationVOs = topicService.listCheckTopic(progress, pageParameter);
Assert.assertTrue("查询失败", declarationVOs.getTotal() > 0);
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class WriterPointLogServiceTest method getListWriterPointLog.
@SuppressWarnings({ "unused", "rawtypes", "unchecked" })
@Test
@Rollback(Const.ISROLLBACK)
public void getListWriterPointLog() {
Integer writerPointLog = this.addWriterPointLogs();
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
WriterPointLogVO writerPointLogVO = new WriterPointLogVO();
pageParameter.setParameter(writerPointLogVO);
pageParameter.setPageSize(10);
pageResult = writerPointLogService.getListWriterPointLog(pageParameter);
Assert.assertNotNull("分页数据失败", pageResult);
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class WriterPointRuleServiceTest method getListWriterPointRule.
@SuppressWarnings({ "unused", "rawtypes", "unchecked" })
@Test
@Rollback(Const.ISROLLBACK)
public void getListWriterPointRule() {
WriterPointRule writerPointRule = this.addWriterPointRules();
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
WriterPointRuleVO writerPointRuleVO = new WriterPointRuleVO();
pageParameter.setParameter(writerPointRuleVO);
pageParameter.setPageSize(10);
pageResult = writerPointRuleService.getListWriterPointRule(pageParameter);
Assert.assertNotNull("分页数据失败", pageResult);
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class WriterUserServiceTest method testGetTeacherCheckList.
@Test
@Rollback(Const.ISROLLBACK)
public void testGetTeacherCheckList() {
WriterUserManagerVO writerUserManagerVO = new WriterUserManagerVO();
writerUserManagerVO.setRealname(null);
PageParameter<WriterUserManagerVO> pageParameter = new PageParameter<WriterUserManagerVO>(1, 15, writerUserManagerVO);
PageResult<WriterUserManagerVO> pageResult = new PageResult<WriterUserManagerVO>();
pageResult = writerUserService.getTeacherCheckList(pageParameter);
Assert.assertNotNull("获取失败", pageResult);
}
Aggregations