diff --git a/spring-integration-core/src/main/resources/org/springframework/integration/config/xml/spring-integration-3.0.xsd b/spring-integration-core/src/main/resources/org/springframework/integration/config/xml/spring-integration-3.0.xsd
index b11657c35b..636def1a2e 100644
--- a/spring-integration-core/src/main/resources/org/springframework/integration/config/xml/spring-integration-3.0.xsd
+++ b/spring-integration-core/src/main/resources/org/springframework/integration/config/xml/spring-integration-3.0.xsd
@@ -1504,7 +1504,7 @@
-
+
@@ -2023,7 +2023,7 @@
-
+
@@ -2359,6 +2359,21 @@
+
+
+
+
+
+
+ Allows you to specify the Charset (e.g., US-ASCII,
+ ISO-8859-1, UTF-8) to be used when transforming byte[]. [UTF-8] is the default
+
+
+
+
+
+
+
@@ -3837,15 +3852,6 @@ endpoint itself is a Polling Consumer for a channel with a queue.
-
-
-
- Allows you to specify the Charset (e.g., US-ASCII,
- ISO-8859-1, UTF-8) to be used when transforming byte[]. [UTF-8] is the default
-
-
-
diff --git a/spring-integration-core/src/test/java/org/springframework/integration/config/ChainParserTests-context.xml b/spring-integration-core/src/test/java/org/springframework/integration/config/ChainParserTests-context.xml
index 92885261c2..09974f7d13 100644
--- a/spring-integration-core/src/test/java/org/springframework/integration/config/ChainParserTests-context.xml
+++ b/spring-integration-core/src/test/java/org/springframework/integration/config/ChainParserTests-context.xml
@@ -101,6 +101,7 @@
+
diff --git a/spring-integration-core/src/test/java/org/springframework/integration/config/ChainParserTests.java b/spring-integration-core/src/test/java/org/springframework/integration/config/ChainParserTests.java
index a7aa4f1464..2edfb893f0 100644
--- a/spring-integration-core/src/test/java/org/springframework/integration/config/ChainParserTests.java
+++ b/spring-integration-core/src/test/java/org/springframework/integration/config/ChainParserTests.java
@@ -30,6 +30,9 @@ import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
+import java.util.List;
+import java.util.concurrent.atomic.AtomicReference;
+
import org.apache.commons.logging.Log;
import org.hamcrest.Factory;
import org.hamcrest.Matcher;
@@ -58,9 +61,6 @@ import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.util.StringUtils;
-import java.util.List;
-import java.util.concurrent.atomic.AtomicReference;
-
/**
* @author Mark Fisher
* @author Iwein Fuld
@@ -277,7 +277,7 @@ public class ChainParserTests {
assertSame(successMessage, testConsumer.getLastMessage());
}
- @Test //INT-2275
+ @Test //INT-2275, INT-2958
public void chainWithLoggingChannelAdapter() {
Log logger = mock(Log.class);
final AtomicReference log = new AtomicReference();
@@ -291,12 +291,12 @@ public class ChainParserTests {
@SuppressWarnings("unchecked")
List handlers = TestUtils.getPropertyValue(this.logChain, "handlers", List.class);
- MessageHandler handler = handlers.get(1);
+ MessageHandler handler = handlers.get(2);
assertTrue(handler instanceof LoggingHandler);
DirectFieldAccessor dfa = new DirectFieldAccessor(handler);
dfa.setPropertyValue("messageLogger", logger);
- this.loggingChannelAdapterChannel.send(MessageBuilder.withPayload("test").build());
+ this.loggingChannelAdapterChannel.send(MessageBuilder.withPayload(new byte[] {116, 101, 115, 116}).build());
assertNotNull(log.get());
assertEquals("TEST", log.get());
}