From 8fa9c68f68ab53b66adb1ca5f2fbb80ddcea55a0 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Mon, 30 Aug 2010 19:03:31 +0000 Subject: [PATCH] INT-1389 removed all dependencies on StringMessage from unit tests in spring-integration-ws --- .../ws/config/WebServiceHeaderEnricherTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-integration-ws/src/test/java/org/springframework/integration/ws/config/WebServiceHeaderEnricherTests.java b/spring-integration-ws/src/test/java/org/springframework/integration/ws/config/WebServiceHeaderEnricherTests.java index c4532f7e64..47129ef815 100644 --- a/spring-integration-ws/src/test/java/org/springframework/integration/ws/config/WebServiceHeaderEnricherTests.java +++ b/spring-integration-ws/src/test/java/org/springframework/integration/ws/config/WebServiceHeaderEnricherTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2010 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. @@ -26,9 +26,9 @@ import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.integration.Message; +import org.springframework.integration.core.GenericMessage; import org.springframework.integration.core.MessageChannel; import org.springframework.integration.core.MessagingTemplate; -import org.springframework.integration.core.StringMessage; import org.springframework.integration.ws.WebServiceHeaders; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @@ -50,7 +50,7 @@ public class WebServiceHeaderEnricherTests { @Test public void literalValue() { MessagingTemplate template = new MessagingTemplate(literalValueInput); - Message result = template.sendAndReceive(new StringMessage("foo")); + Message result = template.sendAndReceive(new GenericMessage("foo")); Map headers = result.getHeaders(); assertEquals("http://test", headers.get(WebServiceHeaders.SOAP_ACTION)); } @@ -58,7 +58,7 @@ public class WebServiceHeaderEnricherTests { @Test public void expression() { MessagingTemplate template = new MessagingTemplate(expressionInput); - Message result = template.sendAndReceive(new StringMessage("foo")); + Message result = template.sendAndReceive(new GenericMessage("foo")); Map headers = result.getHeaders(); assertEquals("http://foo", headers.get(WebServiceHeaders.SOAP_ACTION)); }