Skip to content

Commit 2e36e5f

Browse files
committed
Remove printStackTrace from test
1 parent fb84f6d commit 2e36e5f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/org/apache/commons/codec/binary/Base64OutputStreamTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,13 @@ public void testStrictDecoding() throws Exception {
342342
Base64OutputStream out = new Base64OutputStream(bout, false, 0, null, CodecPolicy.STRICT);
343343
assertTrue(out.isStrictDecoding());
344344
try {
345+
// May throw on write or on close depending on the position of the
346+
// impossible last character in the output block size
345347
out.write(impossibleEncoded);
346348
out.close();
347349
fail();
348350
} catch (final IllegalArgumentException ex) {
349351
// expected
350-
ex.printStackTrace();
351352
}
352353
}
353354
}

0 commit comments

Comments
 (0)