Skip to content

Commit d829a1c

Browse files
authored
Merge pull request #4416 from sajinieKavindya/graceful-shutdown-feature
2 parents 3676b05 + 0406435 commit d829a1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

integration/mediation-tests/tests-transport/src/test/java/org/wso2/carbon/esb/jms/transport/test/JMSMapMessageTestCase.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public void testJMSProxy() throws Exception {
6262
+ " <xsd:quantity>2000</xsd:quantity>"
6363
+ " <xsd:symbol>JMSTransport</xsd:symbol>" + " </ser:order>"
6464
+ " </ser:placeOrder>" + " </soapenv:Body>" + "</soapenv:Envelope>");
65+
log.info("Message sent to the JMS Queue " + queueName);
6566
}
6667
} finally {
6768
sender.disconnect();
@@ -71,7 +72,7 @@ public void testJMSProxy() throws Exception {
7172
JMSBrokerConfigurationProvider.getInstance().getBrokerConfiguration());
7273
try {
7374
consumer.connect(OUT_QUEUE_NAME);
74-
Awaitility.await().pollInterval(50, TimeUnit.MILLISECONDS).atMost(60, TimeUnit.SECONDS)
75+
Awaitility.await().pollInterval(50, TimeUnit.MILLISECONDS).atMost(120, TimeUnit.SECONDS)
7576
.until(isMessagesConsumed(consumer));
7677
for (int i = 0; messages.size() < NUM_OF_MESSAGES; i++) {
7778
Message msg = messages.get(i);
@@ -96,6 +97,7 @@ public Boolean call() throws Exception {
9697
Message msg = consumer.popRawMessage();
9798
if (msg instanceof MapMessage) {
9899
messages.add(msg);
100+
log.info("Number of messages received : " + (messages.size() + 1));
99101
}
100102
return messages.size() == NUM_OF_MESSAGES;
101103
}

0 commit comments

Comments
 (0)