Skip to content

Commit 835a8d4

Browse files
committed
Add tests to BrokenWriterTest.
1 parent cf3ebc7 commit 835a8d4

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/test/java/org/apache/commons/io/output/BrokenWriterTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,23 @@ public void testClose() {
6161
assertEquals(exception, assertThrows(IOException.class, () -> brokenWriter.close()));
6262
}
6363

64+
@Test
65+
@Disabled("What should happen here?")
66+
public void testEquals() {
67+
assertEquals(exception, assertThrows(IOException.class, () -> brokenWriter.equals(null)));
68+
}
69+
6470
@Test
6571
public void testFlush() {
6672
assertEquals(exception, assertThrows(IOException.class, () -> brokenWriter.flush()));
6773
}
6874

75+
@Test
76+
@Disabled("What should happen here?")
77+
public void testHashCode() {
78+
assertEquals(exception, assertThrows(IOException.class, () -> brokenWriter.hashCode()));
79+
}
80+
6981
@Test
7082
@Disabled("What should happen here?")
7183
public void testToString() {

0 commit comments

Comments
 (0)