servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eno...@apache.org
Subject svn commit: r781373 - /servicemix/utils/trunk/src/main/java/org/apache/servicemix/tck/mock/MockMessageExchange.java
Date Wed, 03 Jun 2009 13:46:47 GMT
Author: enolan
Date: Wed Jun  3 13:46:46 2009
New Revision: 781373

URL: http://svn.apache.org/viewvc?rev=781373&view=rev
Log:
SMX4-295 - Faults are not catered for in the MockMessageExchange class 

Modified:
    servicemix/utils/trunk/src/main/java/org/apache/servicemix/tck/mock/MockMessageExchange.java

Modified: servicemix/utils/trunk/src/main/java/org/apache/servicemix/tck/mock/MockMessageExchange.java
URL: http://svn.apache.org/viewvc/servicemix/utils/trunk/src/main/java/org/apache/servicemix/tck/mock/MockMessageExchange.java?rev=781373&r1=781372&r2=781373&view=diff
==============================================================================
--- servicemix/utils/trunk/src/main/java/org/apache/servicemix/tck/mock/MockMessageExchange.java
(original)
+++ servicemix/utils/trunk/src/main/java/org/apache/servicemix/tck/mock/MockMessageExchange.java
Wed Jun  3 13:46:46 2009
@@ -114,7 +114,7 @@
     public void setInMessage(NormalizedMessage in) {
         this.inMessage = in;
     }
-
+    
     /**
      * @return the interfaceName
      */
@@ -226,7 +226,10 @@
             return getInMessage();
         } else if ("out".equalsIgnoreCase(name)) {
             return getOutMessage();
+        } else if ("fault".equalsIgnoreCase(name)) {
+            return getFault();
         }
+        
         return null;
     }
 
@@ -247,6 +250,8 @@
             setInMessage(msg);
         } else if ("out".equalsIgnoreCase(name)) {
             setOutMessage(msg);
+        } else if ("fault".equalsIgnoreCase(name)) {
+            setFault((Fault) msg);
         }
     }
 



Mime
View raw message