@Ignore @Test public void testMakeNewMapWithParent() { DoubleDataset rand = Random.rand(gridScanMap.getMap().getShape()); AxesMetadata ax = gridScanMap.getMap().getFirstMetadata(AxesMetadata.class); MetadataType clone = ax.clone(); rand.setMetadata(clone); MappedData map = gridScanMap.makeNewMapWithParent("random", Random.rand(gridScanMap.getMap().getShape())); assertEquals(gridScanBlock, map.getParent()); }
@Test public void testGetParent() { assertEquals(gridScanBlock, gridScanMap.getParent()); }