servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r397532 - in /incubator/servicemix/trunk/servicemix-eip/src/test: java/org/apache/servicemix/eip/SpringConfigurationTest.java resources/org/apache/servicemix/eip/spring.xml
Date Thu, 27 Apr 2006 12:48:09 GMT
Author: gnodet
Date: Thu Apr 27 05:48:07 2006
New Revision: 397532

URL: http://svn.apache.org/viewcvs?rev=397532&view=rev
Log:
Add MessageSplitter to the spring config

Modified:
    incubator/servicemix/trunk/servicemix-eip/src/test/java/org/apache/servicemix/eip/SpringConfigurationTest.java
    incubator/servicemix/trunk/servicemix-eip/src/test/resources/org/apache/servicemix/eip/spring.xml

Modified: incubator/servicemix/trunk/servicemix-eip/src/test/java/org/apache/servicemix/eip/SpringConfigurationTest.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-eip/src/test/java/org/apache/servicemix/eip/SpringConfigurationTest.java?rev=397532&r1=397531&r2=397532&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-eip/src/test/java/org/apache/servicemix/eip/SpringConfigurationTest.java
(original)
+++ incubator/servicemix/trunk/servicemix-eip/src/test/java/org/apache/servicemix/eip/SpringConfigurationTest.java
Thu Apr 27 05:48:07 2006
@@ -35,13 +35,13 @@
         ServiceMixClient client = new DefaultServiceMixClient(jbi, as);
         InOnly me = client.createInOnlyExchange();
         me.setService(new QName("http://test", "wireTap"));
-        me.getInMessage().setContent(new StringSource("<test><echo/><world/></test>"));
+        me.getInMessage().setContent(new StringSource("<test><echo/><world/><earth/></test>"));
         client.sendSync(me);
         
         ((Receiver) getBean("trace1")).getMessageList().assertMessagesReceived(1);
         ((Receiver) getBean("trace2")).getMessageList().assertMessagesReceived(1);
         ((Receiver) getBean("trace3")).getMessageList().assertMessagesReceived(1);
-        ((Receiver) getBean("trace4")).getMessageList().assertMessagesReceived(1);
+        ((Receiver) getBean("trace4")).getMessageList().assertMessagesReceived(2);
         
         // Wait for all messages to be processed
         Thread.sleep(50);

Modified: incubator/servicemix/trunk/servicemix-eip/src/test/resources/org/apache/servicemix/eip/spring.xml
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-eip/src/test/resources/org/apache/servicemix/eip/spring.xml?rev=397532&r1=397531&r2=397532&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-eip/src/test/resources/org/apache/servicemix/eip/spring.xml
(original)
+++ incubator/servicemix/trunk/servicemix-eip/src/test/resources/org/apache/servicemix/eip/spring.xml
Thu Apr 27 05:48:07 2006
@@ -71,7 +71,7 @@
               <!-- START SNIPPET: static-recipient-list -->
               <eip:static-recipient-list service="test:recipients" endpoint="endpoint">
                 <eip:recipients>
-                  <eip:exchange-target service="test:trace3" />
+                  <eip:exchange-target service="test:messageFilter" />
                   <eip:exchange-target service="test:trace4" />
                 </eip:recipients>
               </eip:static-recipient-list>
@@ -85,6 +85,17 @@
                 </eip:targets>
               </eip:static-routing-slip>
               <!-- END SNIPPET: static-routing-slip -->
+              
+              <!-- START SNIPPET: message-filter -->
+              <eip:message-filter service="test:messageFilter" endpoint="endpoint">
+                <eip:target>
+                  <eip:exchange-target service="test:trace3" />
+                </eip:target>
+                <eip:filter>
+                  <eip:xpath-predicate xpath="count(/world) = 1" />
+                </eip:filter>
+              </eip:message-filter>
+              <!-- END SNIPPET: message-filter -->
               
             </eip:endpoints>
           </eip:component>



Mime
View raw message