use of loci.formats.in.DynamicMetadataOptions in project bioformats by openmicroscopy.
the class ImageReaderTest method testOptionsExplicit.
@Test
public void testOptionsExplicit() throws Exception {
DynamicMetadataOptions opt = new DynamicMetadataOptions();
opt.set(KEY, VALUE);
ImageReader reader = new ImageReader();
reader.setMetadataOptions(opt);
reader.setId("test.fake");
MetadataOptions rOpt = reader.getReader().getMetadataOptions();
assertTrue(rOpt instanceof DynamicMetadataOptions);
String v = ((DynamicMetadataOptions) rOpt).get(KEY);
assertNotNull(v);
assertEquals(v, VALUE);
reader.close();
}
Aggregations