//
// Null argument
//
ImagePyramidReader reader = null;
try {
reader = new ImagePyramidReader(null, new Hints(
Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.FALSE));
} catch (DataSourceException e) {
}
assertNull(reader);
//
// Illegal arguments
//
try {
reader = new ImagePyramidReader(new FileInputStream(testFile),
new Hints(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER,
Boolean.FALSE));
} catch (DataSourceException e) {
}
assertNull(reader);
try {
reader = new ImagePyramidReader(ImageIO
.createImageInputStream(testFile), new Hints(
Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.FALSE));
} catch (DataSourceException e) {
}
assertNull(reader);
//
// Unsopported operation
reader = new ImagePyramidReader(testFile, new Hints(
Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.FALSE));
try {
reader.getCurrentSubname();