495051525354555657
}; route1.addSuccessor(route2); route2.addSuccessor(route3); Future<DistributedExecutionResult> result=route1.processChain(new TextMessage("test")); assertNotNull(result); // assertEquals("2", result.get().getReturnValue()); }
7273747576777879
}); } }; route1.processChain(new TextMessage("test")); // assertEquals("1", result.get().getReturnValue()); }
18192021222324252627
public DispatcherQueueWorkerTest() { super(new LinkedBlockingQueue(), new ConcurrentLinkedQueue(), new MessageParser<String, String>() { @Override public Message<String> parse(String incoming) { return new TextMessage(incoming); } }); }