}
}
}
private void deleteFeatureType(RESTLayer layer) {
RESTFeatureType featureType = reader.getFeatureType(layer);
RESTDataStore datastore = reader.getDatastore(featureType);
LOGGER.warn("Deleting FeatureType" + datastore.getWorkspaceName() + " : "
+ datastore.getName() + " / " + featureType.getName());
boolean removed = publisher.unpublishFeatureType(datastore.getWorkspaceName(),
datastore.getName(), layer.getName());
assertTrue(
"FeatureType not removed:" + datastore.getWorkspaceName() + " : "
+ datastore.getName() + " / " + featureType.getName(), removed);
}