diff --git a/src/test/java/video/api/client/api/clients/CaptionsApiTest.java b/src/test/java/video/api/client/api/clients/CaptionsApiTest.java index 5000742..12df240 100644 --- a/src/test/java/video/api/client/api/clients/CaptionsApiTest.java +++ b/src/test/java/video/api/client/api/clients/CaptionsApiTest.java @@ -184,14 +184,14 @@ public void responseWithStatus200Test() throws ApiException { } @Test - @DisplayName("400 response") + @DisplayName("400-0 response") public void responseWithStatus400Test() throws ApiException { - answerOnAnyRequest(400, readResourceFile(PAYLOADS_PATH + "responses/400.json")); + answerOnAnyRequest(400, readResourceFile(PAYLOADS_PATH + "responses/400-0.json")); - assertThatThrownBy(() -> api.update("vi4k0jvEUuaTdRAEjQ4Prklg", "en", new CaptionsUpdatePayload())) + assertThatThrownBy(() -> api.update("vi4k0jvEUuaTdRAEjQ4Prklg", "en_", new CaptionsUpdatePayload())) .isInstanceOf(ApiException.class) .satisfies(e -> assertThat(((ApiException) e).getCode()).isEqualTo(400)) - .hasMessage("string (required)"); + .hasMessage("An attribute is invalid."); } @Test