Fixing test issues

This commit is contained in:
Soby Chacko
2021-06-07 17:59:24 -04:00
parent 55cb899715
commit 3b9b23304c
4 changed files with 6 additions and 9 deletions

View File

@@ -86,7 +86,7 @@ public class RabbitSourceListenerTests {
rabbitTemplate.convertAndSend("scsapp-testex", "", "hello");
OutputDestination target = context.getBean(OutputDestination.class);
Message<byte[]> sourceMessage = target.receive(600000);
Message<byte[]> sourceMessage = target.receive(600000, "rabbitSupplier-out-0");
final String actual = new String(sourceMessage.getPayload());
assertThat(actual).isEqualTo("hello");
@@ -114,7 +114,7 @@ public class RabbitSourceListenerTests {
bootFactory.resetConnection();
OutputDestination target = context.getBean(OutputDestination.class);
Message<byte[]> sourceMessage = target.receive(600000);
Message<byte[]> sourceMessage = target.receive(600000, "rabbitSupplier-out-0");
final String actual = new String(sourceMessage.getPayload());
assertThat(actual).isEqualTo("foo");
@@ -170,7 +170,7 @@ public class RabbitSourceListenerTests {
});
OutputDestination target = context.getBean(OutputDestination.class);
Message<byte[]> sourceMessage = target.receive(600000);
Message<byte[]> sourceMessage = target.receive(600000, "rabbitSupplier-out-0");
final String actual = new String(sourceMessage.getPayload());
assertThat(actual).isEqualTo("foo");