use of ome.xml.model.Annotation in project bioformats by openmicroscopy.
the class InOutCurrentTest method testValidPlateAnnotation.
@Test(dependsOnMethods = { "testValidPlateNode" })
public void testValidPlateAnnotation() {
Annotation n = ome.getPlate(0).getLinkedAnnotation(0);
assertNotNull(n);
assertEquals(PLATE_ANNOTATION_ID, n.getID());
assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE);
assertTrue(n instanceof TimestampAnnotation);
TimestampAnnotation timestamp = (TimestampAnnotation) n;
assertEquals(timestamp.getValue(), PLATE_ANNOTATION_VALUE);
}
use of ome.xml.model.Annotation in project bioformats by openmicroscopy.
the class InOutCurrentTest method testValidLaserAnnotation.
@Test(dependsOnMethods = { "testValidLaserMetadata" }, enabled = false)
public void testValidLaserAnnotation() {
Annotation n = ome.getInstrument(0).getLightSource(0).getLinkedAnnotation(0);
assertNotNull(n);
assertEquals(LIGHTSOURCE_LASER_ANNOTATION_ID, n.getID());
assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE);
assertTrue(n instanceof CommentAnnotation);
CommentAnnotation string = (CommentAnnotation) n;
assertEquals(LIGHTSOURCE_LASER_ANNOTATION_VALUE, string.getValue());
}
use of ome.xml.model.Annotation in project bioformats by openmicroscopy.
the class InOutCurrentTest method testValidObjectiveAnnotation.
@Test(dependsOnMethods = { "testValidObjectiveNode" })
public void testValidObjectiveAnnotation() {
Annotation n = ome.getInstrument(0).getObjective(0).getLinkedAnnotation(0);
assertNotNull(n);
assertEquals(OBJECTIVE_ANNOTATION_ID, n.getID());
assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE);
assertTrue(n instanceof CommentAnnotation);
CommentAnnotation string = (CommentAnnotation) n;
assertEquals(OBJECTIVE_ANNOTATION_VALUE, string.getValue());
}
use of ome.xml.model.Annotation in project bioformats by openmicroscopy.
the class InOutCurrentTest method testValidEmissionFilterAnnotation.
@Test(dependsOnMethods = { "testValidEmissionFilterNode" })
public void testValidEmissionFilterAnnotation() {
Annotation n = ome.getInstrument(0).getFilter(0).getLinkedAnnotation(0);
assertNotNull(n);
assertEquals(EM_FILTER_ANNOTATION_ID, n.getID());
assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE);
assertTrue(n instanceof CommentAnnotation);
CommentAnnotation string = (CommentAnnotation) n;
assertEquals(EM_FILTER_ANNOTATION_VALUE, string.getValue());
}
use of ome.xml.model.Annotation in project bioformats by openmicroscopy.
the class InOutCurrentTest method testValidChannelAnnotation.
@Test(dependsOnMethods = { "testValidChannelNode" })
public void testValidChannelAnnotation() {
Channel c = ome.getImage(0).getPixels().getChannel(0);
Annotation n = c.getLinkedAnnotation(0);
assertNotNull(n);
assertTrue(n instanceof XMLAnnotation);
assertEquals(CHANNEL_ANNOTATION_ID, n.getID());
assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE);
assertEquals(CHANNEL_ANNOTATION_VALUE, ((XMLAnnotation) n).getValue());
}
Aggregations