use of com.adaptris.core.MultiPayloadMessageFactory in project interlok by adaptris.
the class ForEachTest method setUp.
@Before
public void setUp() throws Exception {
MockitoAnnotations.openMocks(this);
when(mock.retrieveComponentState()).thenReturn(StartedState.getInstance());
when(mock.createName()).thenReturn(mock.getClass().getName());
forEach = new ForEach();
then = new ThenService();
then.setService(mock);
forEach.setThen(then);
message = (MultiPayloadAdaptrisMessage) new MultiPayloadMessageFactory().newMessage("bacon", PAYLOAD_1);
message.addPayload("cupcake", PAYLOAD_2);
}
Aggregations