@Test(dependsOnMethods={"testValidOMENode"})
public void testValidPlateNode() {
Plate plate = ome.getPlate(0);
assertNotNull(plate);
assertEquals(PLATE_ID, plate.getID());
assertEquals(plate.getRows(), WELL_ROWS);
assertEquals(plate.getColumns(), WELL_COLS);
assertEquals(plate.getRowNamingConvention(), WELL_ROW);
assertEquals(plate.getColumnNamingConvention(), WELL_COL);
assertEquals(plate.sizeOfWellList(), WELL_ROWS.getValue() * WELL_COLS.getValue());
for (Integer row=0; row<WELL_ROWS.getValue(); row++) {
for (Integer col=0; col<WELL_COLS.getValue(); col++) {
Well well = plate.getWell(row * WELL_COLS.getValue() + col);
assertNotNull(well);
assertEquals(String.format("Well:%d_%d", row, col), well.getID());
assertEquals(well.getRow(), row);
assertEquals(well.getColumn(), col);
}
}
}