From 794c75f5364b51d7ec89335b08bfaca0f6d4d139 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Fri, 18 Jan 2019 15:05:00 +0100 Subject: [PATCH] GH-1581 Fixed multi-IntegrationFlow conflicts Removed dependency on IntegrationFlow from AbstractMessageChannelBinder as it was unnecessary Fixed and re-enabled ignored tests Resolves #1581 --- .../binder/AbstractMessageChannelBinder.java | 26 ++++++++++++------- .../GreenfieldFunctionEnableBindingTests.java | 4 ++- .../ProcessorToFunctionsSupportTests.java | 9 +++---- 3 files changed, 24 insertions(+), 15 deletions(-) diff --git a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/AbstractMessageChannelBinder.java b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/AbstractMessageChannelBinder.java index e047d9dce..7f0bce482 100644 --- a/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/AbstractMessageChannelBinder.java +++ b/spring-cloud-stream/src/main/java/org/springframework/cloud/stream/binder/AbstractMessageChannelBinder.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2018 the original author or authors. + * Copyright 2016-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -51,7 +51,6 @@ import org.springframework.integration.channel.PublishSubscribeChannel; import org.springframework.integration.context.IntegrationContextUtils; import org.springframework.integration.core.MessageProducer; import org.springframework.integration.core.MessageSource; -import org.springframework.integration.dsl.IntegrationFlow; import org.springframework.integration.dsl.IntegrationFlowBuilder; import org.springframework.integration.dsl.IntegrationFlows; import org.springframework.integration.handler.AbstractMessageHandler; @@ -120,8 +119,7 @@ public abstract class AbstractMessageChannelBinder("hello".getBytes(StandardCharsets.UTF_8))); - assertThat(target.receive(1000).getPayload()).isEqualTo("HELLO:HELLO".getBytes(StandardCharsets.UTF_8)); + String result = new String(target.receive(1000).getPayload()); + System.out.println(result); + assertThat(result).isEqualTo("HELLO:HELLO"); } @Test