Search in sources :

Example 6 with Well

use of ome.xml.model.Well in project bioformats by openmicroscopy.

the class BackReferenceTest method testPlateWellReferences.

@Test
public void testPlateWellReferences() {
    metadata.setPlateID("Plate:0", 0);
    metadata.setWellID("Well:0:0", 0, 0);
    OME root = (OME) metadata.getRoot();
    Plate plate = root.getPlate(0);
    Well well = plate.getWell(0);
    assertNotNull(plate);
    assertNotNull(well);
    assertEquals(plate, well.getPlate());
}
Also used : OME(ome.xml.model.OME) Well(ome.xml.model.Well) Plate(ome.xml.model.Plate) Test(org.testng.annotations.Test)

Aggregations

Plate (ome.xml.model.Plate)6 Well (ome.xml.model.Well)6 WellSample (ome.xml.model.WellSample)4 Test (org.testng.annotations.Test)3 Image (ome.xml.model.Image)2 NonNegativeInteger (ome.xml.model.primitives.NonNegativeInteger)2 PositiveInteger (ome.xml.model.primitives.PositiveInteger)2 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 OMEXMLMetadataRoot (ome.xml.meta.OMEXMLMetadataRoot)1 LongAnnotation (ome.xml.model.LongAnnotation)1 OME (ome.xml.model.OME)1 StructuredAnnotations (ome.xml.model.StructuredAnnotations)1 TimestampAnnotation (ome.xml.model.TimestampAnnotation)1 XMLAnnotation (ome.xml.model.XMLAnnotation)1 Timestamp (ome.xml.model.primitives.Timestamp)1