Search in sources :

Example 6 with DescribeSensorResponseEncoder

use of org.n52.svalbard.encode.DescribeSensorResponseEncoder in project arctic-sea by 52North.

the class DescribeSensorResponseEncoderTest method should_return_correct_schema_location.

@Test
public void should_return_correct_schema_location() {
    assertThat(new DescribeSensorResponseEncoder().getSchemaLocations().size(), is(1));
    SchemaLocation schemLoc = new DescribeSensorResponseEncoder().getSchemaLocations().iterator().next();
    assertThat(schemLoc.getNamespace(), is("http://www.opengis.net/swes/2.0"));
    assertThat(schemLoc.getSchemaFileUrl(), is("http://schemas.opengis.net/swes/2.0/swes.xsd"));
}
Also used : SchemaLocation(org.n52.shetland.w3c.SchemaLocation) DescribeSensorResponseEncoder(org.n52.svalbard.encode.DescribeSensorResponseEncoder) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)6 DescribeSensorResponseEncoder (org.n52.svalbard.encode.DescribeSensorResponseEncoder)6 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 SchemaLocation (org.n52.shetland.w3c.SchemaLocation)1 EncoderKey (org.n52.svalbard.encode.EncoderKey)1 OperationResponseEncoderKey (org.n52.svalbard.encode.OperationResponseEncoderKey)1 XmlEncoderKey (org.n52.svalbard.encode.XmlEncoderKey)1