use of com.bc.pmpheep.back.plugin.PageResult 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);
}
use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.
the class WriterUserServiceTest method testGetListWriterUserVO.
@Test
@Rollback(Const.ISROLLBACK)
public void testGetListWriterUserVO() {
WriterUser writerUser = this.addWriterUser();
PageParameter pageParameter = new PageParameter<>();
PageResult pageResult = new PageResult<>();
WriterUserManagerVO managerVO = new WriterUserManagerVO();
pageParameter.setParameter(managerVO);
pageParameter.setPageSize(15);
pageResult = writerUserService.getListWriterUser(pageParameter, null);
Assert.assertNotNull("是否查询成功", pageResult);
// logger.info("查找成功{}", pageResult);
}
Aggregations