Search in sources :

Example 1 with ReportUpdateRequest

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

the class ReportStepDefinitions method 리포트를수정하면.

@When("리포트를 수정하면")
public void 리포트를수정하면() {
    ReportResponse report = (ReportResponse) context.storage.get("report");
    ReportUpdateRequest reportUpdateRequest = new ReportUpdateRequest("변경된 리포트", "변경된 리포트 설명1");
    context.storage.put("reportRequest", reportUpdateRequest);
    context.invokeHttpPutWithToken("/reports/" + report.getId(), reportUpdateRequest);
}
Also used : ReportResponse(wooteco.prolog.report.application.dto.ReportResponse) ReportUpdateRequest(wooteco.prolog.report.application.dto.ReportUpdateRequest) When(io.cucumber.java.en.When)

Aggregations

When (io.cucumber.java.en.When)1 ReportResponse (wooteco.prolog.report.application.dto.ReportResponse)1 ReportUpdateRequest (wooteco.prolog.report.application.dto.ReportUpdateRequest)1