ModificationType.GROUP_CHANGED).get(0).getId());
}
public void testCascadeStore() {
String citeStore = MockData.CITE_PREFIX;
StoreInfo store = catalog.getStoreByName(citeStore, StoreInfo.class);
String buildings = getLayerId(MockData.BUILDINGS);
String lakes = getLayerId(MockData.LAKES);
LayerInfo bl = catalog.getLayerByName(buildings);
ResourceInfo br = catalog.getResourceByName(buildings, ResourceInfo.class);
LayerInfo ll = catalog.getLayerByName(lakes);
ResourceInfo lr = catalog.getResourceByName(lakes, ResourceInfo.class);
store.accept(visitor);
assertEquals(store, visitor.getObjects(StoreInfo.class, ModificationType.DELETE).get(0));
List<LayerInfo> layers = visitor.getObjects(LayerInfo.class, ModificationType.DELETE);
assertTrue(layers.contains(bl));
assertTrue(layers.contains(ll));