Skip to content

Commit

Permalink
add value checking for the testWriterCloseIsIdempotent test case (#2652)
Browse files Browse the repository at this point in the history
  • Loading branch information
Codegass committed Mar 20, 2024
1 parent 342d600 commit 8bc62cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gson/src/test/java/com/google/gson/stream/JsonWriterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,9 @@ public void testWriterCloseIsIdempotent() throws IOException {
writer.beginArray();
writer.endArray();
writer.close();
assertThat(stringWriter.toString()).isEqualTo("[]");
writer.close();
assertThat(stringWriter.toString()).isEqualTo("[]");
}

@Test
Expand Down

0 comments on commit 8bc62cb

Please sign in to comment.