INT-1622 Updated ChainParserTests
This commit is contained in:
2
buildSrc
2
buildSrc
Submodule buildSrc updated: 1aa2ac99e8...2e7df56522
@@ -74,6 +74,15 @@
|
||||
</payload-type-router>
|
||||
</chain>
|
||||
|
||||
<chain id="chainWithClaimChecks" input-channel="claimCheckInput" output-channel="claimCheckOutput">
|
||||
<claim-check-in/>
|
||||
<claim-check-out/>
|
||||
</chain>
|
||||
|
||||
<channel id="claimCheckOutput">
|
||||
<queue/>
|
||||
</channel>
|
||||
|
||||
<chain id="chainWithSendTimeout" input-channel="chainWithSendTimeoutInput" output-channel="output" send-timeout="9876">
|
||||
<filter ref="typeSelector" />
|
||||
<service-activator ref="testHandler" />
|
||||
@@ -104,5 +113,7 @@
|
||||
<beans:constructor-arg value="1" />
|
||||
<beans:property name="replyMessageText" value="foo" />
|
||||
</beans:bean>
|
||||
|
||||
<beans:bean id="messageStore" class="org.springframework.integration.store.SimpleMessageStore"/>
|
||||
|
||||
</beans:beans>
|
||||
|
||||
@@ -85,6 +85,13 @@ public class ChainParserTests {
|
||||
|
||||
@Autowired
|
||||
private MessageChannel payloadTypeRouterInput;
|
||||
|
||||
@Autowired
|
||||
@Qualifier("claimCheckInput")
|
||||
private MessageChannel claimCheckInput;
|
||||
@Autowired
|
||||
@Qualifier("claimCheckOutput")
|
||||
private PollableChannel claimCheckOutput;
|
||||
|
||||
@Autowired
|
||||
private PollableChannel strings;
|
||||
@@ -190,6 +197,13 @@ public class ChainParserTests {
|
||||
assertEquals(9876, sendTimeout);
|
||||
}
|
||||
|
||||
@Test //INT-1622
|
||||
public void chainWithClaimChecks() {
|
||||
Message<?> message = MessageBuilder.withPayload("test").build();
|
||||
this.claimCheckInput.send(message);
|
||||
Message<?> reply = this.claimCheckOutput.receive(0);
|
||||
assertEquals(message.getPayload(), reply.getPayload());
|
||||
}
|
||||
|
||||
public static class StubHandler extends AbstractReplyProducingMessageHandler {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user