use of com.adaptris.util.text.xml.StxTransformerFactory in project interlok by adaptris.
the class MultiPayloadXmlTransformServiceTest method testSTXOutput.
@Test
public void testSTXOutput() throws Exception {
MultiPayloadAdaptrisMessage m1 = MessageHelper.createMultiPayloadMessage(PAYLOAD_ID_SOURCE, PROPERTIES.getProperty(KEY_XML_TEST_INPUT));
MultiPayloadXmlTransformService service = createBaseExample();
service.setUrl(PROPERTIES.getProperty(KEY_XML_TEST_STX_TRANSFORM_URL));
service.setXmlTransformerFactory(new StxTransformerFactory());
execute(service, m1);
assertEquals(PROPERTIES.getProperty(KEY_XML_TEST_OUTPUT), m1.getContent(PAYLOAD_ID_OUTPUT));
}
Aggregations