Search in sources :

Example 1 with SurveyQuestionVO

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

Aggregations

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