use of nl.nn.adapterframework.soap.SoapWrapperPipe in project iaf by ibissource.
the class MessageSendingPipeTest method testOutputWrapped.
@Test
public void testOutputWrapped() throws Exception {
pipe.setOutputWrapper(new SoapWrapperPipe());
pipe.setPipeProcessor(new CorePipeProcessor());
configureAndStartPipe();
PipeRunResult prr = doPipe("testMessage");
assertEquals("success", prr.getPipeForward().getName());
String expected = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"><soapenv:Body>{ \"input\": \"testMessage\"}</soapenv:Body></soapenv:Envelope>";
assertEquals(expected, prr.getResult().asString());
}
use of nl.nn.adapterframework.soap.SoapWrapperPipe in project iaf by ibissource.
the class MessageSendingPipeTest method testInputWrapped.
@Test
public void testInputWrapped() throws Exception {
pipe.setInputWrapper(new SoapWrapperPipe());
pipe.setPipeProcessor(new CorePipeProcessor());
configureAndStartPipe();
PipeRunResult prr = doPipe("testMessage");
assertEquals("success", prr.getPipeForward().getName());
String expected = "{ \"input\": \"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"><soapenv:Body>testMessage</soapenv:Body></soapenv:Envelope>\"}";
assertEquals(expected, prr.getResult().asString());
}
Aggregations