Added test for PICTImageReader to makes sure JPEGs or other images with PICT magic are recognized.

Better Exception handling.
This commit is contained in:
Harald Kuhr
2009-09-08 12:59:12 +02:00
parent a493cebe13
commit 79ca02c8b0
4 changed files with 30 additions and 12 deletions

View File

@@ -204,7 +204,7 @@ public abstract class ImageReaderAbstractTestCase<T extends ImageReader> extends
reader.setInput(null);
}
public void testRead() throws IOException {
public void testRead() {
ImageReader reader = createReader();
for (TestData data : getTestData()) {
// TODO: Is it required to call reset before setInput?
@@ -1283,7 +1283,7 @@ public abstract class ImageReaderAbstractTestCase<T extends ImageReader> extends
return getClass().getResource(pName);
}
static final protected class TestData {
static final protected class TestData {
private final Object mInput;
private final List<Dimension> mSizes;
private final List<BufferedImage> mImages;