use of net.opengis.sos.x20.GetCapabilitiesType in project ddf by codice.
the class TestCswEndpoint method testGetCapabilitiesTypeNoVersion.
@Test
public void testGetCapabilitiesTypeNoVersion() {
// Should return all sections
GetCapabilitiesType gct = createDefaultGetCapabilitiesType();
gct.setAcceptVersions(null);
CapabilitiesType ct = null;
try {
ct = csw.getCapabilities(gct);
} catch (CswException e) {
fail("CswException caught during getCapabilities GET request: " + e.getMessage());
}
assertThat(ct, notNullValue());
verifyOperationsMetadata(ct);
verifyServiceIdentification(ct);
verifyServiceProvider(ct);
verifyFilterCapabilities(ct);
}
use of net.opengis.sos.x20.GetCapabilitiesType in project ddf by codice.
the class TestCswEndpoint method testGetCapabilitiesTypeServiceProvider.
@Test
public void testGetCapabilitiesTypeServiceProvider() {
// Should only return the ServiceProvider section
GetCapabilitiesType gct = createDefaultGetCapabilitiesType();
SectionsType stv = new SectionsType();
stv.setSection(Arrays.asList(CswEndpoint.SERVICE_PROVIDER));
gct.setSections(stv);
CapabilitiesType ct = null;
try {
ct = csw.getCapabilities(gct);
} catch (CswException e) {
fail("CswException caught during getCapabilities GET request: " + e.getMessage());
}
assertThat(ct, notNullValue());
verifyServiceProvider(ct);
verifyFilterCapabilities(ct);
assertThat(ct.getServiceIdentification(), nullValue());
assertThat(ct.getOperationsMetadata(), nullValue());
}
Aggregations