use of org.n52.shetland.ogc.sos.request.GetObservationRequest in project arctic-sea by 52North.
the class GetObservationRequestDecoderTest method hasProcedures.
@Test
public void hasProcedures() throws IOException, DecodingException {
final GetObservationRequest req = loadMultiple();
assertThat(req.getProcedures(), is(notNullValue()));
assertThat(req.getProcedures(), hasSize(2));
assertThat(req.getProcedures().get(0), is(notNullValue()));
assertThat(req.getProcedures().get(0), is(equalTo("procedure1")));
assertThat(req.getProcedures().get(1), is(notNullValue()));
assertThat(req.getProcedures().get(1), is(equalTo("procedure2")));
}
use of org.n52.shetland.ogc.sos.request.GetObservationRequest in project arctic-sea by 52North.
the class GetObservationRequestDecoderTest method loadMergeIntoArray.
protected GetObservationRequest loadMergeIntoArray() throws DecodingException, IOException {
final JsonNode json = JsonLoader.fromResource("/examples/sos/GetObservationRequest-merge-into-array.json");
final GetObservationRequest req = decoder.decodeJSON(json, true);
assertThat(req, is(notNullValue()));
return req;
}
use of org.n52.shetland.ogc.sos.request.GetObservationRequest in project arctic-sea by 52North.
the class GetObservationRequestDecoderTest method loadSingle.
protected GetObservationRequest loadSingle() throws DecodingException, IOException {
final JsonNode json = JsonLoader.fromResource("/examples/sos/GetObservationRequest-single.json");
final GetObservationRequest req = decoder.decodeJSON(json, true);
assertThat(req, is(notNullValue()));
return req;
}
use of org.n52.shetland.ogc.sos.request.GetObservationRequest in project arctic-sea by 52North.
the class GetObservationRequestDecoderTest method loadNoFilters.
protected GetObservationRequest loadNoFilters() throws DecodingException, IOException {
final JsonNode json = JsonLoader.fromResource("/examples/sos/GetObservationRequest-no-filters.json");
final GetObservationRequest req = decoder.decodeJSON(json, true);
assertThat(req, is(notNullValue()));
return req;
}
use of org.n52.shetland.ogc.sos.request.GetObservationRequest in project arctic-sea by 52North.
the class GetObservationRequestDecoderTest method hasOfferings.
@Test
public void hasOfferings() throws IOException, DecodingException {
final GetObservationRequest req = loadMultiple();
assertThat(req.getOfferings(), is(notNullValue()));
assertThat(req.getOfferings(), hasSize(2));
assertThat(req.getOfferings().get(0), is(notNullValue()));
assertThat(req.getOfferings().get(0), is(equalTo("offering1")));
assertThat(req.getOfferings().get(1), is(notNullValue()));
assertThat(req.getOfferings().get(1), is(equalTo("offering2")));
}
Aggregations