Search in sources :

Example 16 with Process

use of org.n52.shetland.inspire.ompr.Process in project arctic-sea by 52North.

the class AbtractProcessDecodingTest method createProcessFromFile.

protected Process createProcessFromFile() throws XmlException, IOException, DecodingException {
    XmlObject xmlObject = XmlObject.Factory.parse(this.getClass().getResourceAsStream(file));
    Object decodeObject = decoder.decodeXmlElement(xmlObject);
    assertThat(decodeObject, is(instanceOf(Process.class)));
    return (Process) decodeObject;
}
Also used : XmlObject(org.apache.xmlbeans.XmlObject) XmlObject(org.apache.xmlbeans.XmlObject) Process(org.n52.shetland.inspire.ompr.Process)

Aggregations

Process (org.n52.shetland.inspire.ompr.Process)9 XmlObject (org.apache.xmlbeans.XmlObject)6 Test (org.junit.Test)3 CodeWithAuthority (org.n52.shetland.ogc.gml.CodeWithAuthority)2 TimeInstant (org.n52.shetland.ogc.gml.time.TimeInstant)2 AbtractProcessDecodingTest (org.n52.svalbard.decode.AbtractProcessDecodingTest)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 ObjectWriter (com.fasterxml.jackson.databind.ObjectWriter)1 SuppressFBWarnings (edu.umd.cs.findbugs.annotations.SuppressFBWarnings)1 IdentifierType (eu.europa.ec.inspire.schemas.base.x33.IdentifierType)1 ProcessDocument (eu.europa.ec.inspire.schemas.ompr.x30.ProcessDocument)1 ProcessPropertyType (eu.europa.ec.inspire.schemas.ompr.x30.ProcessPropertyType)1 ProcessType (eu.europa.ec.inspire.schemas.ompr.x30.ProcessType)1 IOException (java.io.IOException)1 OutputStream (java.io.OutputStream)1 AbstractComponentType (net.opengis.sensorML.x101.AbstractComponentType)1 AbstractDerivableComponentType (net.opengis.sensorML.x101.AbstractDerivableComponentType)1 AbstractProcessType (net.opengis.sensorML.x101.AbstractProcessType)1 Capabilities (net.opengis.sensorML.x101.CapabilitiesDocument.Capabilities)1 ComponentType (net.opengis.sensorML.x101.ComponentType)1