Quieten test and check it works
MODIFY
src/test/java/org/apache/commons/io/IOExceptionListTestCase.java
src/test/java/org/apache/commons/io/IOExceptionListTestCase.java
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.io.EOFException;
+import java.io.PrintWriter;
+import java.io.StringWriter;
import java.util.Collections;
import java.util.List;
@@ -56,6 +58,11 @@ public void testPrintStackTrace() {
final EOFException cause = new EOFException();
final List<EOFException> list = Collections.singletonList(cause);
final IOExceptionList sqlExceptionList = new IOExceptionList(list);
- sqlExceptionList.printStackTrace();
+ StringWriter sw = new StringWriter();
+ PrintWriter pw = new PrintWriter(sw);
+ sqlExceptionList.printStackTrace(pw);
+ String st = sw.toString();
+ assertTrue(st.startsWith("org.apache.commons.io.IOExceptionList: 1 exceptions: [java.io.EOFException]"));
+ assertTrue(st.contains("Caused by: java.io.EOFException"));
}
}

Quieten test and check it works