Search in sources :

Example 1 with SurveyVO

use of com.bc.pmpheep.back.vo.SurveyVO 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)

Aggregations

PageParameter (com.bc.pmpheep.back.plugin.PageParameter)1 PageResult (com.bc.pmpheep.back.plugin.PageResult)1 Survey (com.bc.pmpheep.back.po.Survey)1 SurveyVO (com.bc.pmpheep.back.vo.SurveyVO)1 BaseTest (com.bc.pmpheep.test.BaseTest)1 Test (org.junit.Test)1 Rollback (org.springframework.test.annotation.Rollback)1