You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by js...@apache.org on 2006/06/30 19:45:27 UTC

svn commit: r418342 - /incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/client/ClientDestinationTest.java

Author: jstrachan
Date: Fri Jun 30 10:45:26 2006
New Revision: 418342

URL: http://svn.apache.org/viewvc?rev=418342&view=rev
Log:
added snippet macros

Modified:
    incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/client/ClientDestinationTest.java

Modified: incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/client/ClientDestinationTest.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/client/ClientDestinationTest.java?rev=418342&r1=418341&r2=418342&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/client/ClientDestinationTest.java (original)
+++ incubator/servicemix/trunk/servicemix-core/src/test/java/org/apache/servicemix/client/ClientDestinationTest.java Fri Jun 30 10:45:26 2006
@@ -46,17 +46,19 @@
     protected MessageList messageList = new MessageList();
 
     public void testInOnlyMessage() throws Exception {
+        // START SNIPPET: message
         Destination destination = client.createDestination("service:http://servicemix.org/cheese/receiver");
         Message message = destination.createInOnlyMessage();
         message.setProperty("name", "James");
         message.setBody("<hello>world</hello>");
         
         client.send(message);
-        
+        // END SNIPPET: message 
         messageList.assertMessagesReceived(1);
     }
     
     public void testInOnlyExchange() throws Exception {
+        // START SNIPPET: inOnly
         Destination destination = client.createDestination("service:http://servicemix.org/cheese/receiver");
         InOnly exchange = destination.createInOnlyExchange();
 
@@ -65,11 +67,13 @@
         message.setContent(new StreamSource(new StringReader("<hello>world</hello>")));
 
         client.send(exchange);
+        // END SNIPPET: inOnly
 
         messageList.assertMessagesReceived(1);
     }
     
     public void testInOutExchange() throws Exception {
+        // START SNIPPET: inOut
         Destination destination = client.createDestination("service:http://servicemix.org/cheese/myService");
         InOut exchange = destination.createInOutExchange();
         
@@ -80,6 +84,7 @@
         client.sendSync(exchange);
         
         NormalizedMessage response = exchange.getOutMessage();
+        // END SNIPPET: inOut
         
         assertNotNull("Should have returned a non-null response!", response);