Search in sources :

Example 1 with DataInterfaceType

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()));
}
Also used : DataInterfaceType(net.opengis.sensorml.x20.DataInterfaceType) SmlDataInterface(org.n52.shetland.ogc.sensorML.v20.SmlDataInterface) Ignore(org.junit.Ignore) Test(org.junit.Test)

Example 2 with DataInterfaceType

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));
}
Also used : Field(net.opengis.swe.x20.DataRecordType.Field) DataInterfaceType(net.opengis.sensorml.x20.DataInterfaceType) SweDataRecord(org.n52.shetland.ogc.swe.SweDataRecord) DataRecordPropertyType(net.opengis.swe.x20.DataRecordPropertyType) SmlDataInterface(org.n52.shetland.ogc.sensorML.v20.SmlDataInterface) Ignore(org.junit.Ignore) Test(org.junit.Test)

Example 3 with DataInterfaceType

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()));
}
Also used : DataInterfaceType(net.opengis.sensorml.x20.DataInterfaceType) SmlDataInterface(org.n52.shetland.ogc.sensorML.v20.SmlDataInterface) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

DataInterfaceType (net.opengis.sensorml.x20.DataInterfaceType)3 Ignore (org.junit.Ignore)3 Test (org.junit.Test)3 SmlDataInterface (org.n52.shetland.ogc.sensorML.v20.SmlDataInterface)3 DataRecordPropertyType (net.opengis.swe.x20.DataRecordPropertyType)1 Field (net.opengis.swe.x20.DataRecordType.Field)1 SweDataRecord (org.n52.shetland.ogc.swe.SweDataRecord)1