Search in sources :

Example 6 with StxTransformerFactory

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));
}
Also used : StxTransformerFactory(com.adaptris.util.text.xml.StxTransformerFactory) MultiPayloadAdaptrisMessage(com.adaptris.core.MultiPayloadAdaptrisMessage) Test(org.junit.Test)

Aggregations

StxTransformerFactory (com.adaptris.util.text.xml.StxTransformerFactory)6 Test (org.junit.Test)6 AdaptrisMessage (com.adaptris.core.AdaptrisMessage)3 MultiPayloadAdaptrisMessage (com.adaptris.core.MultiPayloadAdaptrisMessage)3