use of loci.formats.in.MetadataLevel in project bioformats by openmicroscopy.
the class DynamicMetadataOptionsTest method testMetadataLevel.
// -- MetadataOptions tests --
@Test
public void testMetadataLevel() {
assertEquals(opt.getMetadataLevel(), DynamicMetadataOptions.METADATA_LEVEL_DEFAULT);
for (MetadataLevel level : MetadataLevel.values()) {
opt.setMetadataLevel(level);
assertEquals(opt.getMetadataLevel(), level);
assertEquals((new DynamicMetadataOptions(level)).getMetadataLevel(), level);
}
}
use of loci.formats.in.MetadataLevel in project bioformats by openmicroscopy.
the class ImageReaderTest method testOptionsImplicit.
@Test(dataProvider = "levels")
public void testOptionsImplicit(MetadataLevel level) throws Exception {
ImageReader reader = new ImageReader();
reader.getMetadataOptions().setMetadataLevel(level);
reader.setId("test.fake");
MetadataLevel rLevel = reader.getReader().getMetadataOptions().getMetadataLevel();
assertEquals(rLevel, level);
reader.close();
}
use of loci.formats.in.MetadataLevel 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);
}
}
Aggregations