Skip to content

Commit

Permalink
Test code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
acoburn committed Oct 13, 2023
1 parent 892a9a5 commit 55032ec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ void testReadEntityAsJson() {
@Test
void testReadEntityAsJsonError() {
final InputStream is = new ByteArrayInputStream("{\"invalid JSON\" }".getBytes(UTF_8));
assertThrows(UncheckedIOException.class, () ->
TestUtils.readEntityAsJson(is, new TypeReference<Map<String, Object>>(){}),
final var ref = new TypeReference<Map<String, Object>>(){};
assertThrows(UncheckedIOException.class, () -> TestUtils.readEntityAsJson(is, ref),
"Check converting malformed JSON");
}
}

0 comments on commit 55032ec

Please sign in to comment.