use of ome.xml.model.CommentAnnotation in project bioformats by openmicroscopy.
the class InOutCurrentTest method testValidInstrumentAnnotation.
@Test(dependsOnMethods = { "testValidInstrumentNode" })
public void testValidInstrumentAnnotation() {
Annotation n = ome.getInstrument(0).getLinkedAnnotation(0);
assertNotNull(n);
assertEquals(INSTRUMENT_ANNOTATION_ID, n.getID());
assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE);
assertTrue(n instanceof CommentAnnotation);
CommentAnnotation string = (CommentAnnotation) n;
assertEquals(INSTRUMENT_ANNOTATION_VALUE, string.getValue());
}
use of ome.xml.model.CommentAnnotation in project bioformats by openmicroscopy.
the class InOutCurrentTest method testValidROIAnnotation.
@Test(dependsOnMethods = { "testValidROINode" })
public void testValidROIAnnotation() {
Annotation n = ome.getROI(0).getLinkedAnnotation(0);
assertNotNull(n);
assertEquals(ROI_ANNOTATION_ID, n.getID());
assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE);
assertTrue(n instanceof CommentAnnotation);
CommentAnnotation string = (CommentAnnotation) n;
assertEquals(ROI_ANNOTATION_VALUE, string.getValue());
}
use of ome.xml.model.CommentAnnotation in project bioformats by openmicroscopy.
the class InOutCurrentTest method testValidDichroicAnnotation.
@Test(dependsOnMethods = { "testValidDichroicNode" })
public void testValidDichroicAnnotation() {
Annotation n = ome.getInstrument(0).getDichroic(0).getLinkedAnnotation(0);
assertNotNull(n);
assertEquals(DICHROIC_ANNOTATION_ID, n.getID());
assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE);
assertTrue(n instanceof CommentAnnotation);
CommentAnnotation string = (CommentAnnotation) n;
assertEquals(DICHROIC_ANNOTATION_VALUE, string.getValue());
}
use of ome.xml.model.CommentAnnotation in project bioformats by openmicroscopy.
the class InOutCurrentTest method testValidArcAnnotation.
@Test(dependsOnMethods = { "testValidArcNode" }, enabled = false)
public void testValidArcAnnotation() {
Annotation n = ome.getInstrument(0).getLightSource(2).getLinkedAnnotation(0);
assertNotNull(n);
assertEquals(LIGHTSOURCE_ARC_ANNOTATION_ID, n.getID());
assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE);
assertTrue(n instanceof CommentAnnotation);
CommentAnnotation string = (CommentAnnotation) n;
assertEquals(LIGHTSOURCE_ARC_ANNOTATION_VALUE, string.getValue());
}
use of ome.xml.model.CommentAnnotation in project bioformats by openmicroscopy.
the class InOutCurrentTest method testValidLightEmittingDiodeAnnotation.
@Test(dependsOnMethods = { "testValidLightEmittingDiodeNode" }, enabled = false)
public void testValidLightEmittingDiodeAnnotation() {
LightEmittingDiode led = (LightEmittingDiode) ome.getInstrument(0).getLightSource(4);
Annotation n = led.getLinkedAnnotation(0);
assertNotNull(n);
assertEquals(LIGHTSOURCE_LED_ANNOTATION_ID, n.getID());
assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE);
assertTrue(n instanceof CommentAnnotation);
CommentAnnotation string = (CommentAnnotation) n;
assertEquals(LIGHTSOURCE_LED_ANNOTATION_VALUE, string.getValue());
}
Aggregations