Search in sources :

Example 1 with CapabilitiesBaseType

use of net.opengis.ows.x11.CapabilitiesBaseType in project arctic-sea by 52North.

the class AbstractCapabilitiesBaseTypeDecoderTest method shouldNotThrowNullPointerExceptionWhenServiceIdentificationIsMissing.

@Test
public void shouldNotThrowNullPointerExceptionWhenServiceIdentificationIsMissing() throws DecodingException {
    AbstractCapabilitiesBaseTypeDecoder<CapabilitiesBaseType, OwsCapabilities> decoder = new TestSeam();
    CapabilitiesBaseType cbt = CapabilitiesBaseType.Factory.newInstance();
    cbt.setVersion("2.0.0");
    cbt.setUpdateSequence("nothing-to-see-here");
    Assert.assertThat(decoder.parseCapabilitiesBaseType("SOS", cbt).getServiceIdentification().isPresent(), Is.is(false));
}
Also used : CapabilitiesBaseType(net.opengis.ows.x11.CapabilitiesBaseType) OwsCapabilities(org.n52.shetland.ogc.ows.OwsCapabilities) Test(org.junit.Test)

Aggregations

CapabilitiesBaseType (net.opengis.ows.x11.CapabilitiesBaseType)1 Test (org.junit.Test)1 OwsCapabilities (org.n52.shetland.ogc.ows.OwsCapabilities)1