JAVA-38 Move all Spring Cloud Modules to Boot 2
This commit is contained in:
+3
-3
@@ -28,13 +28,13 @@ public class MultipleOutputsServiceApplicationIntegrationTest {
|
||||
@Test
|
||||
public void whenSendMessage_thenResponseIsInAOutput() {
|
||||
whenSendMessage(1);
|
||||
thenPayloadInChannelIs(pipe.anOutput(), 1);
|
||||
thenPayloadInChannelIs(pipe.anOutput(), "1");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenSendMessage_thenResponseIsInAnotherOutput() {
|
||||
whenSendMessage(11);
|
||||
thenPayloadInChannelIs(pipe.anotherOutput(), 11);
|
||||
thenPayloadInChannelIs(pipe.anotherOutput(), "11");
|
||||
}
|
||||
|
||||
private void whenSendMessage(Integer val) {
|
||||
@@ -43,7 +43,7 @@ public class MultipleOutputsServiceApplicationIntegrationTest {
|
||||
.build());
|
||||
}
|
||||
|
||||
private void thenPayloadInChannelIs(MessageChannel channel, Integer expectedValue) {
|
||||
private void thenPayloadInChannelIs(MessageChannel channel, String expectedValue) {
|
||||
Object payload = messageCollector.forChannel(channel)
|
||||
.poll()
|
||||
.getPayload();
|
||||
|
||||
+3
-3
@@ -28,13 +28,13 @@ public class MultipleOutputsWithConditionsServiceIntegrationTest {
|
||||
@Test
|
||||
public void whenSendMessage_thenResponseIsInAOutput() {
|
||||
whenSendMessage(1);
|
||||
thenPayloadInChannelIs(pipe.anOutput(), 1);
|
||||
thenPayloadInChannelIs(pipe.anOutput(), "1");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void whenSendMessage_thenResponseIsInAnotherOutput() {
|
||||
whenSendMessage(11);
|
||||
thenPayloadInChannelIs(pipe.anotherOutput(), 11);
|
||||
thenPayloadInChannelIs(pipe.anotherOutput(), "11");
|
||||
}
|
||||
|
||||
private void whenSendMessage(Integer val) {
|
||||
@@ -43,7 +43,7 @@ public class MultipleOutputsWithConditionsServiceIntegrationTest {
|
||||
.build());
|
||||
}
|
||||
|
||||
private void thenPayloadInChannelIs(MessageChannel channel, Integer expectedValue) {
|
||||
private void thenPayloadInChannelIs(MessageChannel channel, String expectedValue) {
|
||||
Object payload = messageCollector.forChannel(channel)
|
||||
.poll()
|
||||
.getPayload();
|
||||
|
||||
+1
-1
@@ -35,6 +35,6 @@ public class MyLoggerApplicationIntegrationTest {
|
||||
.poll()
|
||||
.getPayload();
|
||||
|
||||
assertEquals("[1]: This is my message", payload.toString());
|
||||
assertEquals("{\"message\":\"[1]: This is my message\"}", payload.toString());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user