use of org.n52.shetland.ogc.om.values.ProfileValue in project arctic-sea by 52North.
the class GWGeologyLogCoveragePropertyEncoderTest method should_encode_GWGeologyLogCoverage_full.
@Test
public void should_encode_GWGeologyLogCoverage_full() throws EncodingException, DecodingException {
ProfileValue coverage = createGWGeologyLogCoverage(true, true);
XmlObject encodedObject = encoder.encode(coverage);
assertThat(XmlHelper.validateDocument(encodedObject), is(TRUE));
assertThat(encodedObject, instanceOf(GWGeologyLogCoveragePropertyType.class));
}
use of org.n52.shetland.ogc.om.values.ProfileValue in project arctic-sea by 52North.
the class GWGeologyLogCoveragePropertyEncoderTest method should_encode_GWGeologyLogCoverage_toDepth.
@Test
public void should_encode_GWGeologyLogCoverage_toDepth() throws EncodingException, DecodingException {
ProfileValue coverage = createGWGeologyLogCoverage(false, true);
XmlObject encodedObject = encoder.encode(coverage);
assertThat(XmlHelper.validateDocument(encodedObject), is(TRUE));
assertThat(encodedObject, instanceOf(GWGeologyLogCoveragePropertyType.class));
}
use of org.n52.shetland.ogc.om.values.ProfileValue in project arctic-sea by 52North.
the class GWGeologyLogCoveragePropertyEncoderTest method createGWGeologyLogCoverage.
private ProfileValue createGWGeologyLogCoverage(boolean fromDepth, boolean toDepth) {
ProfileValue coverage = new ProfileValue("");
coverage.addValue(createLogValue(fromDepth, toDepth, 0.0));
coverage.addValue(createLogValue(fromDepth, toDepth, 10.0));
return coverage;
}
Aggregations