use of nl.nn.adapterframework.senders.XsltSender in project iaf by ibissource.
the class XmlFileElementIteratorPipeTest method testElementChain.
@Test
public void testElementChain() throws Exception {
XsltSender sender = new XsltSender();
sender.setXpathExpression("concat(Person/PersonName/Id,'_',Person/Demographics/Gender)");
pipe.setSender(sender);
pipe.setElementChain("GetPartiesOnAgreementRLY;PartyAgreementRole;PartyInternalAgreementRole;Party;Person");
pipe.configure();
pipe.start();
URL input = TestFileUtils.getTestFileURL("/XmlFileElementIteratorPipe/input.xml");
File file = new File(input.toURI());
String expected = TestFileUtils.getTestFile("/XmlFileElementIteratorPipe/ElementChainOutput.xml");
PipeRunResult prr = doPipe(pipe, file.toString(), session);
String result = Message.asString(prr.getResult());
TestAssertions.assertEqualsIgnoreCRLF(expected, result);
}
Aggregations