Search in sources :

Example 6 with CorePipeProcessor

use of nl.nn.adapterframework.processors.CorePipeProcessor 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());
}
Also used : PipeRunResult(nl.nn.adapterframework.core.PipeRunResult) CorePipeProcessor(nl.nn.adapterframework.processors.CorePipeProcessor) SoapWrapperPipe(nl.nn.adapterframework.soap.SoapWrapperPipe) Test(org.junit.Test)

Aggregations

CorePipeProcessor (nl.nn.adapterframework.processors.CorePipeProcessor)6 Test (org.junit.Test)6 PipeRunResult (nl.nn.adapterframework.core.PipeRunResult)4 Message (nl.nn.adapterframework.stream.Message)4 SoapWrapperPipe (nl.nn.adapterframework.soap.SoapWrapperPipe)2 TestConfiguration (nl.nn.adapterframework.testutil.TestConfiguration)2 PipeLine (nl.nn.adapterframework.core.PipeLine)1 PipeLineExit (nl.nn.adapterframework.core.PipeLineExit)1 PipeLineResult (nl.nn.adapterframework.core.PipeLineResult)1 PipeLineSession (nl.nn.adapterframework.core.PipeLineSession)1 DirectWrapperPipe (nl.nn.adapterframework.extensions.esb.DirectWrapperPipe)1 EchoPipe (nl.nn.adapterframework.pipes.EchoPipe)1 PutInSession (nl.nn.adapterframework.pipes.PutInSession)1 CorePipeLineProcessor (nl.nn.adapterframework.processors.CorePipeLineProcessor)1 EchoSender (nl.nn.adapterframework.senders.EchoSender)1