use of org.isotc211._2005.gmd.MDMetadataType in project geo-platform by geosdi.
the class CatalogGetRecordByIdTest method testOutputOriginalIspra.
@Ignore(value = "Catalog is DOWN")
@Test
public void testOutputOriginalIspra() throws Exception {
URL url = new URL(ISPRA_URL);
GPCatalogConnectorStore connector = GPCSWConnectorBuilder.newConnector().withServerUrl(url).build();
CatalogGetRecordByIdRequest<GetRecordByIdResponseType> request = connector.createGetRecordByIdRequest();
request.setId("{D499D5B8-13A5-43B2-B4FA-9FD2AA519F90}");
request.setElementSetType(ElementSetType.FULL.value());
request.setOutputSchema(OutputSchema.ORIGINAL);
Object o = request.getResponse();
MDMetadataType metadata = (MDMetadataType) o;
Assert.assertNotNull(metadata);
logger.info("FULL METADATA @@@@@@@@@@@@@@@@@@@@@@@@@@@ {}", metadata);
}
Aggregations