use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class BookServiceTest method testGetBookPreferenceAnalysis.
@Test
public void testGetBookPreferenceAnalysis() {
PageParameter<BookPreferenceAnalysisVO> pageParameter = new PageParameter<>(1, 10);
BookPreferenceAnalysisVO bookPreferenceAnalysisVO = new BookPreferenceAnalysisVO();
bookPreferenceAnalysisVO.setBookname(null);
pageParameter.setParameter(bookPreferenceAnalysisVO);
PageResult<BookPreferenceAnalysisVO> pageResult = bookService.getBookPreferenceAnalysis(pageParameter);
Assert.assertNotNull(pageResult.getRows());
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class BookUserCommentServiceTest method testListBookUserComment.
@Test
public void testListBookUserComment() {
PageParameter<BookUserCommentVO> pageParameter = new PageParameter<>(1, 1);
BookUserCommentVO bookUserCommentVO = new BookUserCommentVO();
bookUserCommentVO.setIsAuth(1);
bookUserCommentVO.setName("名字");
pageParameter.setParameter(bookUserCommentVO);
PageResult<BookUserCommentVO> pageResult = bookUserCommentService.listBookUserComment(pageParameter);
Assert.assertTrue("分页初始化/查询图书评论", pageResult.getRows().isEmpty());
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class OrgSeviceTest method testListOrgByOrgName.
@Test
public void testListOrgByOrgName() {
PageParameter pageParameter = new PageParameter<>();
PageResult<OrgVO> pageResult = new PageResult<OrgVO>();
OrgVO orgVO = new OrgVO();
orgVO.setOrgName(null);
orgVO.setAreaId(null);
orgVO.setRealname(null);
pageParameter.setPageNumber(1);
pageParameter.setPageSize(20);
pageParameter.setParameter(orgVO);
pageResult = orgService.getSchoolAdminCheckList(pageParameter);
Assert.assertNotNull("在新增用户与修改用户时查询机构失败", orgService.listOrgByOrgName("机构名称"));
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class OrgSeviceTest method testListSendToSchoolAdminOrAllUser.
@Test
public void testListSendToSchoolAdminOrAllUser() {
PageParameter pageParameter = new PageParameter<>();
PageResult<OrgVO> pageResult = new PageResult<OrgVO>();
OrgVO orgVO = new OrgVO();
orgVO.setOrgName(null);
orgVO.setAreaId(null);
orgVO.setRealname(null);
pageParameter.setPageNumber(1);
pageParameter.setPageSize(20);
pageParameter.setParameter(orgVO);
pageResult = orgService.getSchoolAdminCheckList(pageParameter);
Assert.assertNotNull("系统消息——发送新消息——发送对象失败", orgService.listSendToSchoolAdminOrAllUser("机构名称", 1L));
}
use of com.bc.pmpheep.back.plugin.PageParameter in project pmph by BCSquad.
the class PmphGroupFileServiceTest method testGetList.
@Test
public void testGetList() {
pmphGroupFileService.add(pmphGroupFile);
PageResult pageResult = new PageResult<>();
PageParameter pageParameter = new PageParameter<>();
PmphGroupFileVO fileVO = new PmphGroupFileVO();
fileVO.setFileName(null);
fileVO.setFileId(null);
fileVO.setGroupId(pmphGroupFile.getGroupId());
;
pageParameter.setParameter(fileVO);
pageParameter.setPageSize(15);
pageResult = pmphGroupFileService.listGroupFile(pageParameter);
Assert.assertNotNull("没有获取到数据", pageResult.getRows());
}
Aggregations