use of net.opengis.sos.x20.ResultTemplateType in project arctic-sea by 52North.
the class InsertResultTemplateRequestEncoderTest method shouldSetObservationTemplate.
@Test
public void shouldSetObservationTemplate() throws EncodingException {
ResultTemplateType template = ((InsertResultTemplateDocument) encoder.create(request)).getInsertResultTemplate().getProposedTemplate().getResultTemplate();
Assert.assertThat(template.getObservationTemplate(), Matchers.notNullValue());
}
use of net.opengis.sos.x20.ResultTemplateType in project arctic-sea by 52North.
the class InsertResultTemplateRequestEncoderTest method shouldSetOffering.
@Test
public void shouldSetOffering() throws EncodingException {
ResultTemplateType template = ((InsertResultTemplateDocument) encoder.create(request)).getInsertResultTemplate().getProposedTemplate().getResultTemplate();
Assert.assertThat(template.getOffering(), Matchers.notNullValue());
Assert.assertThat(template.getOffering(), Is.is(offering));
}
use of net.opengis.sos.x20.ResultTemplateType in project arctic-sea by 52North.
the class InsertResultTemplateRequestEncoderTest method shouldSetOptionalIdentifier.
@Test
public void shouldSetOptionalIdentifier() throws EncodingException {
ResultTemplateType template = ((InsertResultTemplateDocument) encoder.create(request)).getInsertResultTemplate().getProposedTemplate().getResultTemplate();
Assert.assertThat(template.isSetIdentifier(), Is.is(true));
Assert.assertThat(template.getIdentifier(), Is.is(templateIdentifier));
}
Aggregations