Search in sources :

Example 1 with SurveyTemplateListVO

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

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