Search in sources :

Example 1 with PageableResponse

use of wooteco.prolog.common.PageableResponse in project prolog by woowacourse.

the class ReportDocumentation method 리포트_목록_조회.

@Test
void 리포트_목록_조회() {
    PageableResponse response = new PageableResponse(REPORT_RESPONSES, 2L, 1, 1);
    when(reportService.findReportsByUsername(any(), any())).thenReturn(response);
    given.when().get("/members/username/reports").then().log().all().apply(document("reports/list")).statusCode(HttpStatus.OK.value());
}
Also used : PageableResponse(wooteco.prolog.common.PageableResponse) Test(org.junit.jupiter.api.Test) WebMvcTest(org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest)

Aggregations

Test (org.junit.jupiter.api.Test)1 WebMvcTest (org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest)1 PageableResponse (wooteco.prolog.common.PageableResponse)1