Search in sources :

Example 56 with PageResult

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);
}
Also used : WriterUserManagerVO(com.bc.pmpheep.back.vo.WriterUserManagerVO) PageParameter(com.bc.pmpheep.back.plugin.PageParameter) PageResult(com.bc.pmpheep.back.plugin.PageResult) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest) Rollback(org.springframework.test.annotation.Rollback)

Example 57 with 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);
}
Also used : WriterUserManagerVO(com.bc.pmpheep.back.vo.WriterUserManagerVO) PageParameter(com.bc.pmpheep.back.plugin.PageParameter) WriterUser(com.bc.pmpheep.back.po.WriterUser) PageResult(com.bc.pmpheep.back.plugin.PageResult) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest) Rollback(org.springframework.test.annotation.Rollback)

Aggregations

PageResult (com.bc.pmpheep.back.plugin.PageResult)57 CheckedServiceException (com.bc.pmpheep.service.exception.CheckedServiceException)33 PageParameter (com.bc.pmpheep.back.plugin.PageParameter)24 BaseTest (com.bc.pmpheep.test.BaseTest)20 Test (org.junit.Test)20 PmphUser (com.bc.pmpheep.back.po.PmphUser)17 ArrayList (java.util.ArrayList)13 Rollback (org.springframework.test.annotation.Rollback)12 HashMap (java.util.HashMap)8 CmsContentVO (com.bc.pmpheep.back.vo.CmsContentVO)4 MyMessageVO (com.bc.pmpheep.back.vo.MyMessageVO)4 OrgVO (com.bc.pmpheep.back.vo.OrgVO)4 WriterUserManagerVO (com.bc.pmpheep.back.vo.WriterUserManagerVO)4 PmphGroup (com.bc.pmpheep.back.po.PmphGroup)3 PmphRole (com.bc.pmpheep.back.po.PmphRole)3 SysOperation (com.bc.pmpheep.back.po.SysOperation)3 WriterUser (com.bc.pmpheep.back.po.WriterUser)3 PmphUserManagerVO (com.bc.pmpheep.back.vo.PmphUserManagerVO)3 Material (com.bc.pmpheep.back.po.Material)2 PmphDepartment (com.bc.pmpheep.back.po.PmphDepartment)2