INT-3470: SF 4.1 Compatibility #2
JIRA: https://jira.spring.io/browse/INT-3470 * Apply the last `ChannelInterceptor` changes - just `extends ChannelInterceptorAdapter` * Change some tests to check content according to the new changes to the `GenericMessage#toString()` **Cherry-pick to 4.0.x**
This commit is contained in:
committed by
Gary Russell
parent
84e3d4e126
commit
3890e892d8
@@ -113,9 +113,9 @@ public class MarshallingTransformerParserTests {
|
||||
Message<?> result = output.receive(0);
|
||||
assertTrue("Wrong payload type", result.getPayload() instanceof DOMResult);
|
||||
Document doc = (Document) ((DOMResult) result.getPayload()).getNode();
|
||||
String expected = "[Payload String content=hello]";
|
||||
String actual = doc.getDocumentElement().getTextContent();
|
||||
assertThat(actual, Matchers.containsString(expected));
|
||||
assertThat(actual, Matchers.containsString("[Payload"));
|
||||
assertThat(actual, Matchers.containsString("=hello]"));
|
||||
assertThat(actual, Matchers.containsString("[Headers="));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user