Skip to content
Snippets Groups Projects
Commit 27baf15b authored by brinn's avatar brinn
Browse files

Adapt test expectations to Bioformats 4.4.1.

SVN: 26214
parent d881d464
No related branches found
No related tags found
No related merge requests found
...@@ -93,12 +93,13 @@ public class ImageReaderFactoryTest extends ImageReaderTestCase ...@@ -93,12 +93,13 @@ public class ImageReaderFactoryTest extends ImageReaderTestCase
@Test(expectedExceptions = IOExceptionUnchecked.class) @Test(expectedExceptions = IOExceptionUnchecked.class)
public void testReadNonExistingFile() throws Exception public void testReadNonExistingFile() throws Exception
{ {
final String invalidName = "invalid_file_path.jpg"; final String invalidName = "invalid_file_path.tif";
final File invalidFile = new File(invalidName); final File invalidFile = new File(invalidName);
ImageReadersTestHelper.setUpLibraries(ImageReaderConstants.BIOFORMATS_LIBRARY); ImageReadersTestHelper.setUpLibraries(ImageReaderConstants.BIOFORMATS_LIBRARY);
IImageReader reader = IImageReader reader =
ImageReaderFactory.tryGetReaderForFile(BIOFORMATS_LIBRARY, invalidName); ImageReaderFactory.tryGetReaderForFile(BIOFORMATS_LIBRARY, invalidName);
assertNotNull(reader);
reader.readImage(invalidFile, ImageID.NULL, null); reader.readImage(invalidFile, ImageID.NULL, null);
} }
......
...@@ -105,7 +105,6 @@ public class BioFormatsMetaDataReadingTest extends ImageReaderTestCase ...@@ -105,7 +105,6 @@ public class BioFormatsMetaDataReadingTest extends ImageReaderTestCase
+ "camera-chip-offset-x: 0\n" + "camera-chip-offset-x: 0\n"
+ "camera-chip-offset-y: 0\n" + "camera-chip-offset-y: 0\n"
+ "exposure time 0 (ms): 10.0\n" + "exposure time 0 (ms): 10.0\n"
+ "exposure time 1 (ms): 10.0\n"
+ "gamma: 1\n" + "gamma: 1\n"
+ "gray-calibration-curve-fit-algorithm: 4\n" + "gray-calibration-curve-fit-algorithm: 4\n"
+ "gray-calibration-max: -1\n" + "gray-calibration-max: -1\n"
...@@ -136,7 +135,6 @@ public class BioFormatsMetaDataReadingTest extends ImageReaderTestCase ...@@ -136,7 +135,6 @@ public class BioFormatsMetaDataReadingTest extends ImageReaderTestCase
+ "threshold-low: 0\n" + "threshold-low: 0\n"
+ "threshold-state: ThresholdOff\n" + "threshold-state: ThresholdOff\n"
+ "timestamp 0: 1290354772986\n" + "timestamp 0: 1290354772986\n"
+ "timestamp 1: 1290354772986\n"
+ "wavelength: 624\n" + "z-position: 11145.7\n" + "zoom-percent: 50\n"; + "wavelength: 624\n" + "z-position: 11145.7\n" + "zoom-percent: 50\n";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment