This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push: new b20e61e Unfortunately close throws b20e61e is described below commit b20e61e2d4af17c51d2411ff5b9e0d3aa2441d73 Author: Sebb <s...@apache.org> AuthorDate: Sat Aug 8 00:48:37 2020 +0100 Unfortunately close throws --- .../io/output/ProxyCollectionWriterTest.java | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/test/java/org/apache/commons/io/output/ProxyCollectionWriterTest.java b/src/test/java/org/apache/commons/io/output/ProxyCollectionWriterTest.java index fa03ffb..aa6e345 100644 --- a/src/test/java/org/apache/commons/io/output/ProxyCollectionWriterTest.java +++ b/src/test/java/org/apache/commons/io/output/ProxyCollectionWriterTest.java @@ -17,7 +17,6 @@ package org.apache.commons.io.output; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; @@ -51,7 +50,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(0, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -68,7 +66,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(1, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -85,7 +82,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(0, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -102,7 +98,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(1, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -119,7 +114,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(0, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -136,7 +130,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(1, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -152,7 +145,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(0, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -168,7 +160,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(1, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -184,7 +175,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(0, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -200,7 +190,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(1, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -217,7 +206,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(0, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -234,7 +222,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(1, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -251,7 +238,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(0, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -268,7 +254,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(1, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -285,7 +270,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(0, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -302,7 +286,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -319,7 +302,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(0, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -337,7 +319,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -354,7 +335,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCauseList().size()); assertEquals(0, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -372,7 +352,6 @@ public class ProxyCollectionWriterTest { assertEquals(1, e.getCause(0, IOIndexedException.class).getIndex()); } - tw.close(); } @Test @@ -403,7 +382,6 @@ public class ProxyCollectionWriterTest { teeWriter.append('a'); teeWriter.flush(); } - assertTrue(true, "Test succeeded"); // need at least one assertion } @Test