INT-87 initial commit of MessageHistory support (work in progress)
This commit is contained in:
@@ -47,6 +47,7 @@ import org.springframework.integration.dispatcher.RoundRobinLoadBalancingStrateg
|
||||
import org.springframework.integration.dispatcher.UnicastingDispatcher;
|
||||
import org.springframework.integration.message.MessageHandler;
|
||||
import org.springframework.integration.message.MessageRejectedException;
|
||||
import org.springframework.integration.message.StringMessage;
|
||||
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
||||
|
||||
/**
|
||||
@@ -77,8 +78,8 @@ public class MixedDispatcherConfigurationScenarioTests {
|
||||
@Mock
|
||||
private MessageHandler handlerC;
|
||||
|
||||
@Mock
|
||||
private Message<?> message;
|
||||
private Message<?> message = new StringMessage("test");
|
||||
|
||||
|
||||
@Before
|
||||
public void initialize() throws Exception {
|
||||
|
||||
@@ -139,8 +139,8 @@ public class ArgumentArrayMessageMapperFromMessageTests {
|
||||
.setHeader("prop1", "foo").setHeader("prop2", "bar").build();
|
||||
Object[] args = mapper.fromMessage(message);
|
||||
Map result = (Map) args[0];
|
||||
//Map also contains id and timestamp
|
||||
assertEquals(4, result.size());
|
||||
//Map also contains id, timestamp, and history
|
||||
assertEquals(5, result.size());
|
||||
assertEquals("foo", result.get("prop1"));
|
||||
assertEquals("bar", result.get("prop2"));
|
||||
assertEquals("test", args[1]);
|
||||
|
||||
Reference in New Issue
Block a user