You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ff...@apache.org on 2007/10/16 07:20:29 UTC

svn commit: r585042 - in /incubator/servicemix/branches/servicemix-4.0: api/src/test/java/org/apache/servicemix/api/OsgiExample.java core/src/test/java/org/apache/servicemix/core/IntegrationTest.java

Author: ffang
Date: Mon Oct 15 22:20:23 2007
New Revision: 585042

URL: http://svn.apache.org/viewvc?rev=585042&view=rev
Log:
change setContent to setBody since Message api changed

Modified:
    incubator/servicemix/branches/servicemix-4.0/api/src/test/java/org/apache/servicemix/api/OsgiExample.java
    incubator/servicemix/branches/servicemix-4.0/core/src/test/java/org/apache/servicemix/core/IntegrationTest.java

Modified: incubator/servicemix/branches/servicemix-4.0/api/src/test/java/org/apache/servicemix/api/OsgiExample.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/api/src/test/java/org/apache/servicemix/api/OsgiExample.java?rev=585042&r1=585041&r2=585042&view=diff
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/api/src/test/java/org/apache/servicemix/api/OsgiExample.java (original)
+++ incubator/servicemix/branches/servicemix-4.0/api/src/test/java/org/apache/servicemix/api/OsgiExample.java Mon Oct 15 22:20:23 2007
@@ -85,7 +85,7 @@
         try {
             Exchange e = channel.createExchange(Pattern.InOnly);
             e.setTarget(target);
-            e.getIn().setContent("Hello");
+            e.getIn().setBody("Hello");
             channel.send(e);
         } finally {
             channel.close();

Modified: incubator/servicemix/branches/servicemix-4.0/core/src/test/java/org/apache/servicemix/core/IntegrationTest.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/core/src/test/java/org/apache/servicemix/core/IntegrationTest.java?rev=585042&r1=585041&r2=585042&view=diff
==============================================================================
--- incubator/servicemix/branches/servicemix-4.0/core/src/test/java/org/apache/servicemix/core/IntegrationTest.java (original)
+++ incubator/servicemix/branches/servicemix-4.0/core/src/test/java/org/apache/servicemix/core/IntegrationTest.java Mon Oct 15 22:20:23 2007
@@ -43,7 +43,7 @@
         Channel client = nmr.createChannel();
         Exchange e = client.createExchange(Pattern.InOnly);
         e.setTarget(nmr.getEndpointRegistry().lookup(ServiceHelper.createMap(Endpoint.NAME, "id")));
-        e.getIn().setContent("Hello");
+        e.getIn().setBody("Hello");
         boolean res = client.sendSync(e);
         assertTrue(res);
         assertNotNull(endpoint.getExchange());