Skip to content

Commit

Permalink
fix(java): fix unit test on captions due to regression
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee authored Dec 5, 2023
1 parent 1a5b0a3 commit c544cea
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,12 @@ public void responseWithStatus200Test() throws ApiException {
@Test
@DisplayName("400 response")
public void responseWithStatus400Test() throws ApiException {
answerOnAnyRequest(400, readResourceFile(PAYLOADS_PATH + "responses/400.json"));
answerOnAnyRequest(400, readResourceFile(PAYLOADS_PATH + "responses/400-0.json"));

ApiException e = assertThrows(ApiException.class,
() -> api.update("vi4k0jvEUuaTdRAEjQ4Prklg", "en", new CaptionsUpdatePayload()));
() -> api.update("vi4k0jvEUuaTdRAEjQ4Prklg", "en_", new CaptionsUpdatePayload()));
assertThat(e.getCode()).isEqualTo(400);
assertThat(e).hasMessageThat().contains("string (required)");
assertThat(e).hasMessageThat().contains("An attribute is invalid.");
}

@Test
Expand Down

0 comments on commit c544cea

Please sign in to comment.