use of loci.formats.in.DefaultMetadataOptions in project bioformats by openmicroscopy.
the class DefaultMetadataOptionsTest method testMetadataLevel.
@Test
public void testMetadataLevel() {
assertEquals(opt.getMetadataLevel(), MetadataLevel.ALL);
for (MetadataLevel level : MetadataLevel.values()) {
opt.setMetadataLevel(level);
assertEquals(opt.getMetadataLevel(), level);
assertEquals((new DefaultMetadataOptions(level)).getMetadataLevel(), level);
}
}
use of loci.formats.in.DefaultMetadataOptions in project bioformats by openmicroscopy.
the class MetadataConfigurableTest method setUp.
@BeforeClass
public void setUp() {
pixelsOnly = new ImageReader();
pixelsOnly.setMetadataOptions(new DefaultMetadataOptions(MetadataLevel.MINIMUM));
all = new ImageReader();
all.setMetadataOptions(new DefaultMetadataOptions(MetadataLevel.ALL));
noOverlays = new ImageReader();
noOverlays.setMetadataOptions(new DefaultMetadataOptions(MetadataLevel.NO_OVERLAYS));
id = getProperty(FILENAME_PROPERTY);
if (null == id) {
LOGGER.error(SKIP_MESSAGE);
throw new SkipException(SKIP_MESSAGE);
}
}
Aggregations