Search in sources :

Example 1 with DefaultMetadataOptions

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);
    }
}
Also used : MetadataLevel(loci.formats.in.MetadataLevel) DefaultMetadataOptions(loci.formats.in.DefaultMetadataOptions) Test(org.testng.annotations.Test)

Example 2 with DefaultMetadataOptions

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);
    }
}
Also used : SkipException(org.testng.SkipException) ImageReader(loci.formats.ImageReader) DefaultMetadataOptions(loci.formats.in.DefaultMetadataOptions) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

DefaultMetadataOptions (loci.formats.in.DefaultMetadataOptions)2 ImageReader (loci.formats.ImageReader)1 MetadataLevel (loci.formats.in.MetadataLevel)1 SkipException (org.testng.SkipException)1 BeforeClass (org.testng.annotations.BeforeClass)1 Test (org.testng.annotations.Test)1