Author: ningjiang
Date: Thu Oct 20 12:48:48 2011
New Revision: 1186770

URL: http://svn.apache.org/viewvc?rev=1186770&view=rev
Log:
CAMEL-4503 fixed the cs error and the test error

Modified:
    
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxf2Test.java
    
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxfTest.java

Modified: 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxf2Test.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxf2Test.java?rev=1186770&r1=1186769&r2=1186770&view=diff
==============================================================================
--- 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxf2Test.java
 (original)
+++ 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxf2Test.java
 Thu Oct 20 12:48:48 2011
@@ -29,11 +29,6 @@ import org.springframework.context.suppo
 
 public class RecipientListCxf2Test extends CamelSpringTestSupport {
 
-    @Override
-    protected AbstractApplicationContext createApplicationContext() {
-        return new 
ClassPathXmlApplicationContext("org/apache/camel/itest/greeter/RecipientListCxf2Test-context.xml");
-    }
-
     @EndpointInject(uri = "mock:reply")
     protected MockEndpoint replyEndpoint;
 
@@ -43,6 +38,11 @@ public class RecipientListCxf2Test exten
     @EndpointInject(uri = "mock:output")
     protected MockEndpoint outputEndpoint;
 
+    @Override
+    protected AbstractApplicationContext createApplicationContext() {
+        return new 
ClassPathXmlApplicationContext("org/apache/camel/itest/greeter/RecipientListCxf2Test-context.xml");
+    }
+    
     @Test
     public void testRecipientListCXF2() throws Exception {
         replyEndpoint.expectedBodiesReceived("Hello Willem", "Hello Jonathan", 
"Hello Freeman");
@@ -66,8 +66,8 @@ public class RecipientListCxf2Test exten
         assertEquals("Bye Claus", out2);
 
         // change foo headers again
-        headers.put("foo", 
"cxf:bean:clientEndpoint?address=http://localhost:9003/SoapContext/SoapPort";
-                + 
",cxf:bean:clientEndpoint?address=http://localhost:9004/SoapContext/SoapPort";);
+        headers.put("foo", 
"cxf:bean:clientEndpoint?address=http://localhost:9002/SoapContext/SoapPort";
+                + 
",cxf:bean:clientEndpoint?address=http://localhost:9003/SoapContext/SoapPort";);
 
         // and call again to ensure that it really works also
         // returns the last message from the recipient list
@@ -75,8 +75,8 @@ public class RecipientListCxf2Test exten
         assertEquals("Bye Jonathan", out3);
 
         // change foo headers again
-        headers.put("foo", 
"cxf:bean:clientEndpoint?address=http://localhost:9004/SoapContext/SoapPort";
-                + 
",cxf:bean:clientEndpoint?address=http://localhost:9003/SoapContext/SoapPort";);
+        headers.put("foo", 
"cxf:bean:clientEndpoint?address=http://localhost:9003/SoapContext/SoapPort";
+                + 
",cxf:bean:clientEndpoint?address=http://localhost:9002/SoapContext/SoapPort";);
 
         // and call again to ensure that it really works also
         // returns the last message from the recipient list

Modified: 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxfTest.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxfTest.java?rev=1186770&r1=1186769&r2=1186770&view=diff
==============================================================================
--- 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxfTest.java
 (original)
+++ 
camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/greeter/RecipientListCxfTest.java
 Thu Oct 20 12:48:48 2011
@@ -29,11 +29,6 @@ import org.springframework.context.suppo
 
 public class RecipientListCxfTest extends CamelSpringTestSupport {
 
-    @Override
-    protected AbstractApplicationContext createApplicationContext() {
-        return new 
ClassPathXmlApplicationContext("org/apache/camel/itest/greeter/RecipientListCxfTest-context.xml");
-    }
-
     @EndpointInject(uri = "mock:reply")
     protected MockEndpoint replyEndpoint;
 
@@ -43,6 +38,11 @@ public class RecipientListCxfTest extend
     @EndpointInject(uri = "mock:output")
     protected MockEndpoint outputEndpoint;
 
+    @Override
+    protected AbstractApplicationContext createApplicationContext() {
+        return new 
ClassPathXmlApplicationContext("org/apache/camel/itest/greeter/RecipientListCxfTest-context.xml");
+    }
+
     @Test
     public void testRecipientListCXF() throws Exception {
         replyEndpoint.expectedBodiesReceived("Hello Willem", "Hello Jonathan", 
"Hello Freeman");


Reply via email to