use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class PmphUserServiceTest method testTetListPmphUserVO.
@Test
public void testTetListPmphUserVO() {
PageResult pageResult = new PageResult<>();
PageParameter pageParameter = new PageParameter<>();
PmphUserManagerVO managerVO = new PmphUserManagerVO();
managerVO.setUsername(null);
managerVO.setRealname(null);
managerVO.setPath("0-92-174");
managerVO.setDepartmentId(176L);
pageParameter.setParameter(managerVO);
pageParameter.setPageNumber(1);
pageParameter.setPageSize(30);
pageResult = userService.getListPmphUser(pageParameter, null);
Assert.assertNotNull("查找失败", pageResult);
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class SensitiveServiceTest method listTest.
@Test
public void listTest() {
Sensitive sen = sensitiveService.add(sensitive);
PageParameter<Sensitive> pageParameter = new PageParameter<>(1, 5);
Sensitive sensitive = new Sensitive();
pageParameter.setParameter(sensitive);
PageResult<Sensitive> pageResult = sensitiveService.list(pageParameter);
Assert.assertNotNull("获取失败", pageResult.getRows());
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class UserMessageServiceTest method testListMyMessage.
@Test
@Rollback(Const.ISROLLBACK)
public void testListMyMessage() {
MyMessageVO myMessageVO = new MyMessageVO();
myMessageVO.setUserId(1L);
myMessageVO.setUserType(1);
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
pageParameter.setParameter(myMessageVO);
pageResult = userMessageService.listMyMessage(pageParameter);
Assert.assertNotNull("查询成功了", pageResult);
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class UserMessageServiceTest method testListMyMessageOfIcon.
@Test
@Rollback(Const.ISROLLBACK)
public void testListMyMessageOfIcon() {
MyMessageVO myMessageVO = new MyMessageVO();
myMessageVO.setUserId(1L);
myMessageVO.setUserType(1);
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
pageParameter.setParameter(myMessageVO);
pageResult = userMessageService.listMyMessageOfIcon(pageParameter);
Assert.assertNotNull("查询成功了", pageResult);
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class WriterPointRuleServiceTest method getlistWriterPointRulePoint.
@SuppressWarnings({ "unused", "rawtypes", "unchecked" })
@Test
@Rollback(Const.ISROLLBACK)
public void getlistWriterPointRulePoint() {
WriterPointRule writerPointRule = this.addWriterPointRulePoint();
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
WriterPointRuleVO writerPointRuleVO = new WriterPointRuleVO();
pageParameter.setParameter(writerPointRuleVO);
pageParameter.setPageSize(10);
pageResult = writerPointRuleService.getlistWriterPointRulePoint(pageParameter);
Assert.assertNotNull("分页数据失败", pageResult);
}
Aggregations