@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()); }
@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); }
@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()); }
@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()); }
@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); }
@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()); }
@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()); } @Test(dependsOnMethods={"testValidFilterSetNode"})
@Test(dependsOnMethods={"testValidDetectorNode"}) public void testValidDetectorAnnotation() { Annotation n = ome.getInstrument(0).getDetector(0).getLinkedAnnotation(0); assertNotNull(n); assertEquals(DETECTOR_ANNOTATION_ID, n.getID()); assertEquals(n.getNamespace(), GENERAL_ANNOTATION_NAMESPACE); assertTrue(n instanceof CommentAnnotation); CommentAnnotation string = (CommentAnnotation) n; assertEquals(DETECTOR_ANNOTATION_VALUE, string.getValue()); }
@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()); }
@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()); }
@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()); }
@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()); }
@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()); }