Skip to content

Commit

Permalink
Update gson/src/test/java/com/google/gson/TypeAdapterTest.java
Browse files Browse the repository at this point in the history
Co-authored-by: Marcono1234 <[email protected]>
  • Loading branch information
elevne and Marcono1234 committed Jul 29, 2023
1 parent cdf8325 commit 95e7235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gson/src/test/java/com/google/gson/TypeAdapterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void testToJson_ThrowingIOException() {
assertThat(e.getCause()).isEqualTo(exception);

e = assertThrows(JsonIOException.class, () -> adapter.toJsonTree(1));
assertThat(e.getCause()).isEqualTo(exception);
assertThat(e).hasCauseThat().isEqualTo(exception);
}

private static final TypeAdapter<String> adapter = new TypeAdapter<String>() {
Expand Down

0 comments on commit 95e7235

Please sign in to comment.