Clean up.

This commit is contained in:
Harald Kuhr 2015-04-10 11:36:59 +02:00
parent 791be3d0cc
commit d997096818

View File

@ -24,6 +24,7 @@ import java.util.Iterator;
import java.util.List; import java.util.List;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import static org.junit.Assume.assumeNoException;
import static org.mockito.Matchers.anyInt; import static org.mockito.Matchers.anyInt;
import static org.mockito.Matchers.eq; import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.*; import static org.mockito.Mockito.*;
@ -235,7 +236,6 @@ public class BMPImageReaderTest extends ImageReaderAbstractTest<BMPImageReader>
@Test @Test
public void testMetadataEqualsJRE() throws IOException, URISyntaxException { public void testMetadataEqualsJRE() throws IOException, URISyntaxException {
// Ignore this test if not on an Oracle JRE (com.sun...BMPImageReader not available)
ImageReader jreReader; ImageReader jreReader;
try { try {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -244,8 +244,9 @@ public class BMPImageReaderTest extends ImageReaderAbstractTest<BMPImageReader>
jreReader = constructor.newInstance(new Object[] {null}); jreReader = constructor.newInstance(new Object[] {null});
} }
catch (Exception e) { catch (Exception e) {
System.err.println("WARNING: Skipping metadata tests: " + e);
e.printStackTrace(); e.printStackTrace();
// Ignore this test if not on an Oracle JRE (com.sun...BMPImageReader not available)
assumeNoException(e);
return; return;
} }