use of nl.nn.adapterframework.senders.SenderWrapperBase in project iaf by ibissource.
the class InputOutputSenderWrapperProcessorTest method testGetInputFromFixedValuePreserveStoreResult.
@Test
public void testGetInputFromFixedValuePreserveStoreResult() throws Exception {
SenderWrapperBase sender = getSenderWrapper();
sender.setGetInputFromFixedValue("def");
sender.setPreserveInput(true);
sender.setStoreResultInSessionKey("storedResult");
String input = "abc";
String expectedSecondSenderOutput = "Sender 2: [Sender 1: [def]]";
String expectedWrapperOutput = "abc";
String expectedSessionKeyValue = expectedSecondSenderOutput;
testInputOutputSenderWrapperProcessor(sender, input, expectedSecondSenderOutput, expectedWrapperOutput, expectedSessionKeyValue);
}
use of nl.nn.adapterframework.senders.SenderWrapperBase in project iaf by ibissource.
the class InputOutputSenderWrapperProcessorTest method testStoreInput.
@Test
public void testStoreInput() throws Exception {
SenderWrapperBase sender = getSenderWrapper();
sender.setStoreInputInSessionKey("storedResult");
String input = "abc";
String expectedSecondSenderOutput = "Sender 2: [Sender 1: [abc]]";
String expectedWrapperOutput = expectedSecondSenderOutput;
String expectedSessionKeyValue = input;
testInputOutputSenderWrapperProcessor(sender, input, expectedSecondSenderOutput, expectedWrapperOutput, expectedSessionKeyValue);
}
use of nl.nn.adapterframework.senders.SenderWrapperBase in project iaf by ibissource.
the class InputOutputSenderWrapperProcessorTest method testBasic.
@Test
public void testBasic() throws Exception {
SenderWrapperBase sender = getSenderWrapper();
String input = "abc";
String expectedSecondSenderOutput = "Sender 2: [Sender 1: [abc]]";
String expectedWrapperOutput = expectedSecondSenderOutput;
String expectedSessionKeyValue = null;
testInputOutputSenderWrapperProcessor(sender, input, expectedSecondSenderOutput, expectedWrapperOutput, expectedSessionKeyValue);
}
use of nl.nn.adapterframework.senders.SenderWrapperBase in project iaf by ibissource.
the class InputOutputSenderWrapperProcessorTest method testBasicStoreResult.
@Test
public void testBasicStoreResult() throws Exception {
SenderWrapperBase sender = getSenderWrapper();
sender.setStoreResultInSessionKey("storedResult");
String input = "abc";
String expectedSecondSenderOutput = "Sender 2: [Sender 1: [abc]]";
String expectedWrapperOutput = expectedSecondSenderOutput;
String expectedSessionKeyValue = expectedSecondSenderOutput;
testInputOutputSenderWrapperProcessor(sender, input, expectedSecondSenderOutput, expectedWrapperOutput, expectedSessionKeyValue);
}
use of nl.nn.adapterframework.senders.SenderWrapperBase in project iaf by ibissource.
the class InputOutputSenderWrapperProcessorTest method testBasicPreserveStoreResult.
@Test
public void testBasicPreserveStoreResult() throws Exception {
SenderWrapperBase sender = getSenderWrapper();
sender.setPreserveInput(true);
sender.setStoreResultInSessionKey("storedResult");
String input = "abc";
String expectedSecondSenderOutput = "Sender 2: [Sender 1: [abc]]";
String expectedWrapperOutput = "abc";
String expectedSessionKeyValue = expectedSecondSenderOutput;
testInputOutputSenderWrapperProcessor(sender, input, expectedSecondSenderOutput, expectedWrapperOutput, expectedSessionKeyValue);
}
Aggregations