use of org.apache.xmlbeans.impl.piccolo.xml.XMLStreamReader in project camel by apache.
the class XmlBeansConverterTest method toXmlObjectFromXMLStreamReader.
@Test
public void toXmlObjectFromXMLStreamReader() throws Exception {
XmlObject result = XmlBeansConverter.toXmlObject(new XMLStreamReader(new ByteArrayInputStream(PAYLOAD.getBytes()), false), new DefaultExchange(new DefaultCamelContext()));
assertBuyStocks(result);
}
Aggregations