Skip to content

Commit

Permalink
fixed unit tests broken after GeneralException prefix removal
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed May 17, 2022
1 parent d33a69f commit cdc1279
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -38,7 +38,7 @@ public void buildForSize() {

assertThat(json).isEqualTo(JsonFactory.newObject("{" +
"\"status\":431," +
"\"error\":\"general:headers.too.large\"," +
"\"error\":\"headers.too.large\"," +
"\"message\":\"The headers are too large.\"," +
"\"description\":\"The number of bytes exceeded the maximum allowed value <5>!\"" +
"}"));
Expand All @@ -57,7 +57,7 @@ public void buildForAuthSubjectsCount() {

assertThat(json).isEqualTo(JsonFactory.newObject("{" +
"\"status\":431," +
"\"error\":\"general:headers.too.large\"," +
"\"error\":\"headers.too.large\"," +
"\"message\":\"The headers are too large.\"," +
"\"description\":\"The number of authorization subjects <1> exceeded the maximum allowed value <2>.\"" +
"}"));
Expand Down
Expand Up @@ -34,7 +34,7 @@ public class TooManyRequestsExceptionTest {

final JsonObject KNOWN_JSON = JsonFactory.newObject("{\n" +
" \"status\": 429,\n" +
" \"error\": \"general:too.many.requests\",\n" +
" \"error\": \"too.many.requests\",\n" +
" \"message\": \"You made too many requests.\",\n" +
" \"description\": \"Try again soon.\"\n" +
"}");
Expand Down

0 comments on commit cdc1279

Please sign in to comment.