use of ome.xml.model.Annotation in project bioformats by openmicroscopy.
the class InOutCurrentTest method testValidFilamentAnnotation.
@Test(dependsOnMethods = { "testValidFilamentNode" }, enabled = false)
public void testValidFilamentAnnotation() {
Annotation n = ome.getInstrument(0).getLightSource(3).getLinkedAnnotation(0);
assertNotNull(n);
assertEquals(LIGHTSOURCE_FILAMENT_ANNOTATION_ID, n.getID());
assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE);
assertTrue(n instanceof CommentAnnotation);
CommentAnnotation string = (CommentAnnotation) n;
assertEquals(LIGHTSOURCE_FILAMENT_ANNOTATION_VALUE, string.getValue());
}
use of ome.xml.model.Annotation in project bioformats by openmicroscopy.
the class InOutCurrentTest method testValidWellAnnotation.
@Test(dependsOnMethods = { "testValidWellSamples" })
public void testValidWellAnnotation() {
Annotation n = ome.getPlate(0).getWell(0).getLinkedAnnotation(0);
assertNotNull(n);
assertEquals(WELL_ANNOTATION_ID, n.getID());
assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE);
assertTrue(n instanceof LongAnnotation);
LongAnnotation longAnnotation = (LongAnnotation) n;
assertEquals(longAnnotation.getValue(), WELL_ANNOTATION_VALUE);
}
Aggregations