Skip to content

Commit

Permalink
fix quality violations
Browse files Browse the repository at this point in the history
  • Loading branch information
uchitsa committed Dec 10, 2024
1 parent 90cc8f3 commit 46c3280
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ void canReadAsArrayIfOne() throws IOException {
.fetch().as(JacksonResponse.class);
final ArrayNode array = response.json().readArray();
MatcherAssert.assertThat(
array.get(0).asText(), Matchers.is("one")
"should be 'one'", array.get(0).asText(), Matchers.is("one")
);
MatcherAssert.assertThat(
array.get(1).asText(), Matchers.is("two")
"should be 'one'", array.get(1).asText(), Matchers.is("two")
);
}

Expand All @@ -203,6 +203,7 @@ void invalidJsonObjectErrorIsLeftToJackson() throws IOException {
.withBody("{\"anInvalidObjectTest\":{}")
.fetch().as(JacksonResponse.class);
MatcherAssert.assertThat(
"should contains error 'Unexpected end-of-input: expected close marker for Object",
Assertions.assertThrows(
IOException.class,
new Executable() {
Expand Down

0 comments on commit 46c3280

Please sign in to comment.