Search in sources :

Example 46 with PageResult

use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.

the class OrgUserSeviceTest method testGetListOrgUserVO.

@Test
public void testGetListOrgUserVO() {
    PageParameter pageParameter = new PageParameter<>();
    PageResult pageResult = new PageResult<>();
    OrgAndOrgUserVO managerVO = new OrgAndOrgUserVO();
    managerVO.setUsername(null);
    managerVO.setRealname(null);
    managerVO.setOrgName(null);
    pageParameter.setParameter(managerVO);
    pageParameter.setStart(1);
    pageParameter.setPageSize(15);
    pageResult = orgUserService.getListOrgUser(pageParameter);
    Assert.assertNotNull("获取失败", pageResult);
}
Also used : OrgAndOrgUserVO(com.bc.pmpheep.back.vo.OrgAndOrgUserVO) PageParameter(com.bc.pmpheep.back.plugin.PageParameter) PageResult(com.bc.pmpheep.back.plugin.PageResult) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest)

Example 47 with PageResult

use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.

the class PmphUserServiceTest method getListByUsernameAndRealname.

@Test
public void getListByUsernameAndRealname() {
    PageResult pageResult = userService.getListByUsernameAndRealname("1", 1, 10);
    Assert.assertNotNull("查找失败", pageResult);
}
Also used : PageResult(com.bc.pmpheep.back.plugin.PageResult) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest)

Example 48 with PageResult

use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.

the class SurveyQuestionServiceTest method listSurveyQuestion.

@SuppressWarnings({ "unused", "rawtypes", "unchecked" })
@Test
@Rollback(Const.ISROLLBACK)
public void listSurveyQuestion() {
    SurveyQuestion surveyQuestion = this.addSurveyQuestions();
    PageParameter pageParameter = new PageParameter<>();
    PageResult pageResult = new PageResult<>();
    SurveyQuestionVO surveyQuestionVO = new SurveyQuestionVO();
    pageParameter.setParameter(surveyQuestionVO);
    pageParameter.setPageSize(10);
    pageResult = surveyQuestionService.listSurveyQuestion(pageParameter);
    Assert.assertNotNull("分页数据失败", pageResult);
}
Also used : SurveyQuestionVO(com.bc.pmpheep.back.vo.SurveyQuestionVO) PageParameter(com.bc.pmpheep.back.plugin.PageParameter) PageResult(com.bc.pmpheep.back.plugin.PageResult) SurveyQuestion(com.bc.pmpheep.back.po.SurveyQuestion) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest) Rollback(org.springframework.test.annotation.Rollback)

Example 49 with PageResult

use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.

the class SurveyServiceTest method listSurvey.

@SuppressWarnings({ "unused", "rawtypes", "unchecked" })
@Test
@Rollback(Const.ISROLLBACK)
public void listSurvey() {
    Survey survey = this.addSurveys();
    PageParameter pageParameter = new PageParameter<>();
    PageResult pageResult = new PageResult<>();
    SurveyVO surveyVO = new SurveyVO();
    pageParameter.setParameter(surveyVO);
    pageParameter.setPageSize(10);
    pageResult = surveyService.listSurvey(pageParameter);
    Assert.assertNotNull("分页数据失败", pageResult);
}
Also used : Survey(com.bc.pmpheep.back.po.Survey) SurveyVO(com.bc.pmpheep.back.vo.SurveyVO) 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 50 with PageResult

use of com.bc.pmpheep.back.plugin.PageResult in project pmph by BCSquad.

the class SurveyTemplateServiceTest method listSurveyTemplateList.

@SuppressWarnings({ "unused", "rawtypes", "unchecked" })
@Test
@Rollback(Const.ISROLLBACK)
public void listSurveyTemplateList() {
    SurveyTemplate surveyTemplate = this.addSurveyTemplates();
    PageParameter pageParameter = new PageParameter<>();
    PageResult pageResult = new PageResult<>();
    SurveyTemplateListVO surveyTemplateListVO = new SurveyTemplateListVO();
    pageParameter.setParameter(surveyTemplateListVO);
    pageParameter.setPageSize(10);
    pageResult = surveyTemplateService.listSurveyTemplateList(pageParameter);
    Assert.assertNotNull("分页数据失败", pageResult);
}
Also used : SurveyTemplateListVO(com.bc.pmpheep.back.vo.SurveyTemplateListVO) SurveyTemplate(com.bc.pmpheep.back.po.SurveyTemplate) 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)

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