use of org.apache.sis.storage.Aggregate in project sis by apache.
the class StoreTest method verifyContent.
/**
* Verifies that the given metadata contains one of the given identifiers.
* The identifiers that are found are removed from the given set.
*/
private static void verifyContent(final Aggregate store, final Set<String> identifiers) throws DataStoreException {
for (final Resource resource : store.components()) {
assertNotNull("resource", resource);
for (Identification info : resource.getMetadata().getIdentificationInfo()) {
final String id = Citations.getIdentifier(info.getCitation());
assertTrue(id, identifiers.remove(id));
if (resource instanceof Aggregate) {
verifyContent((Aggregate) resource, identifiers);
}
}
}
}
Aggregations