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));
}
Aggregations