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;
}
Aggregations