use of net.opengis.sensorml.x20.DataInterfaceType in project arctic-sea by 52North.
the class SensorMLDecoderV20Test method shouldDecodeDataInterface.
@Test
@Ignore("not yet implemented")
public void shouldDecodeDataInterface() throws DecodingException {
DataInterfaceType xbDataInterface = DataInterfaceType.Factory.newInstance();
SmlDataInterface parsedDataInterface = getDecoder().parseDataInterfaceType(xbDataInterface);
assertThat(parsedDataInterface, is(notNullValue()));
}
use of net.opengis.sensorml.x20.DataInterfaceType in project arctic-sea by 52North.
the class SensorMLDecoderV20Test method shouldDecodeDataInterfaceInterfaceParameters.
@Test
@Ignore("not yet implemented")
public void shouldDecodeDataInterfaceInterfaceParameters() throws DecodingException {
DataInterfaceType xbDataInterface = DataInterfaceType.Factory.newInstance();
DataRecordPropertyType xbInterfaceParameters = xbDataInterface.addNewInterfaceParameters();
Field field = xbInterfaceParameters.addNewDataRecord().addNewField();
field.setName("test-field-name");
SmlDataInterface parsedDataInterface = getDecoder().parseDataInterfaceType(xbDataInterface);
assertThat(parsedDataInterface.isSetInterfaceParameters(), is(true));
assertThat(parsedDataInterface.getInterfaceParameters(), CoreMatchers.isA(SweDataRecord.class));
}
use of net.opengis.sensorml.x20.DataInterfaceType in project arctic-sea by 52North.
the class SensorMLDecoderV20Test method shouldDecodeDataInterfaceData.
@Test
@Ignore("not yet implemented")
public void shouldDecodeDataInterfaceData() throws DecodingException {
DataInterfaceType xbDataInterface = DataInterfaceType.Factory.newInstance();
xbDataInterface.addNewData();
SmlDataInterface parsedDataInterface = getDecoder().parseDataInterfaceType(xbDataInterface);
assertThat(parsedDataInterface.getData(), is(notNullValue()));
}
Aggregations