assertTrue(classNames.contains("ViewportLayerFixture"));
}
@Test
public void getCellByPosition() throws Exception {
ILayerCell cell = layerFixture.getCellByPosition(3, 2);
assertIsCorner(cell.getLayer());
assertEquals("[3, 2]", cell.getDataValue());
assertEquals(new Rectangle(15, 10, 5, 5), cell.getBounds()); // pixel
// values
assertEquals(DisplayMode.NORMAL, cell.getDisplayMode());
// Get a cell from the body
cell = layerFixture.getCellByPosition(8, 8);
assertTrue(cell.getLayer() instanceof CompositeLayer);
assertEquals("[3, 1]", cell.getDataValue());
assertEquals(new Rectangle(310, 75, 100, 70), cell.getBounds());
assertEquals(DisplayMode.NORMAL, cell.getDisplayMode());
assertEquals(8, cell.getOriginColumnPosition());
assertEquals(8, cell.getOriginRowPosition());
}