Search in sources :

Example 6 with Label

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

the class Schema2011_06_File_Upgrade_Test method testShape12.

@Test(groups = { "11-06-u-roi" }, dependsOnMethods = { "testROI4AndUnion" })
public void testShape12() {
    Assert.assertNotNull(union4);
    shape12 = union4.getShape(0);
    Assert.assertEquals(Label.class.getName(), shape12.getClass().getName());
    Label label12 = (Label) shape12;
    Assert.assertEquals(MESSAGE_REMOVED_PATH, label12.getText());
    Assert.assertEquals(Double.valueOf(0), label12.getX());
    Assert.assertEquals(Double.valueOf(0), label12.getY());
}
Also used : Label(ome.xml.model.Label) Test(org.testng.annotations.Test)

Aggregations

Label (ome.xml.model.Label)6 Test (org.testng.annotations.Test)5 Ellipse (ome.xml.model.Ellipse)1 Image (ome.xml.model.Image)1 Line (ome.xml.model.Line)1 Mask (ome.xml.model.Mask)1 Point (ome.xml.model.Point)1 Polygon (ome.xml.model.Polygon)1 Polyline (ome.xml.model.Polyline)1 ROI (ome.xml.model.ROI)1 Rectangle (ome.xml.model.Rectangle)1 Shape (ome.xml.model.Shape)1 Union (ome.xml.model.Union)1