Search in sources :

Example 1 with SimpleReportPageableResponse

use of wooteco.prolog.report.application.dto.report.response.SimpleReportPageableResponse in project prolog by woowacourse.

the class ReportStepDefinitions method 단순리포트목록이조회된다.

@Then("단순 리포트 목록이 조회된다")
public void 단순리포트목록이조회된다() {
    SimpleReportPageableResponse simpleReportPageableResponse = context.response.as(SimpleReportPageableResponse.class);
    assertThat(simpleReportPageableResponse.getCurrentPage()).isOne();
    assertThat(simpleReportPageableResponse.getTotalPage()).isOne();
    assertThat(simpleReportPageableResponse.getTotalSize()).isOne();
    assertThat(simpleReportPageableResponse.getReports()).hasSize(1);
}
Also used : SimpleReportPageableResponse(wooteco.prolog.report.application.dto.report.response.SimpleReportPageableResponse) Then(io.cucumber.java.en.Then)

Aggregations

Then (io.cucumber.java.en.Then)1 SimpleReportPageableResponse (wooteco.prolog.report.application.dto.report.response.SimpleReportPageableResponse)1