From d9970968189c27a63eabbabea99bd0349f2196f9 Mon Sep 17 00:00:00 2001 From: Harald Kuhr Date: Fri, 10 Apr 2015 11:36:59 +0200 Subject: [PATCH] Clean up. --- .../imageio/plugins/bmp/BMPImageReaderTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/imageio/imageio-bmp/src/test/java/com/twelvemonkeys/imageio/plugins/bmp/BMPImageReaderTest.java b/imageio/imageio-bmp/src/test/java/com/twelvemonkeys/imageio/plugins/bmp/BMPImageReaderTest.java index fcdce530..c426d7ee 100755 --- a/imageio/imageio-bmp/src/test/java/com/twelvemonkeys/imageio/plugins/bmp/BMPImageReaderTest.java +++ b/imageio/imageio-bmp/src/test/java/com/twelvemonkeys/imageio/plugins/bmp/BMPImageReaderTest.java @@ -24,6 +24,7 @@ import java.util.Iterator; import java.util.List; import static org.junit.Assert.*; +import static org.junit.Assume.assumeNoException; import static org.mockito.Matchers.anyInt; import static org.mockito.Matchers.eq; import static org.mockito.Mockito.*; @@ -235,7 +236,6 @@ public class BMPImageReaderTest extends ImageReaderAbstractTest @Test public void testMetadataEqualsJRE() throws IOException, URISyntaxException { - // Ignore this test if not on an Oracle JRE (com.sun...BMPImageReader not available) ImageReader jreReader; try { @SuppressWarnings("unchecked") @@ -244,8 +244,9 @@ public class BMPImageReaderTest extends ImageReaderAbstractTest jreReader = constructor.newInstance(new Object[] {null}); } catch (Exception e) { - System.err.println("WARNING: Skipping metadata tests: " + e); e.printStackTrace(); + // Ignore this test if not on an Oracle JRE (com.sun...BMPImageReader not available) + assumeNoException(e); return; }