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 authored Jul 29, 2023
1 parent 95e7235 commit d8a4c62
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 @@ -60,7 +60,7 @@ public void testToJson_ThrowingIOException() {
};

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

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

0 comments on commit d8a4c62

Please sign in to comment.