synapse-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asan...@apache.org
Subject svn commit: r744943 - in /synapse/trunk/java/modules/core/src: main/java/org/apache/synapse/mediators/transform/FaultMediator.java test/java/org/apache/synapse/mediators/transform/FaultMediatorTest.java
Date Mon, 16 Feb 2009 15:39:49 GMT
Author: asankha
Date: Mon Feb 16 15:39:46 2009
New Revision: 744943

URL: http://svn.apache.org/viewvc?rev=744943&view=rev
Log:
Commit patch for SYNAPSE-508 from Michal Stochmialek

Modified:
    synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/FaultMediator.java
    synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/transform/FaultMediatorTest.java

Modified: synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/FaultMediator.java
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/FaultMediator.java?rev=744943&r1=744942&r2=744943&view=diff
==============================================================================
--- synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/FaultMediator.java
(original)
+++ synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/FaultMediator.java
Mon Feb 16 15:39:46 2009
@@ -97,10 +97,13 @@
         switch (soapVersion) {
             case SOAP11:
                 makeSOAPFault(synCtx, SOAP11, synLog);
+                break;
             case SOAP12:
                 makeSOAPFault(synCtx, SOAP12, synLog);
+                break;
             case POX:
                 makePOXFault(synCtx, synLog);
+                break;
 
             default : {
                 // if this is a POX or REST message then make a POX fault

Modified: synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/transform/FaultMediatorTest.java
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/transform/FaultMediatorTest.java?rev=744943&r1=744942&r2=744943&view=diff
==============================================================================
--- synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/transform/FaultMediatorTest.java
(original)
+++ synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/transform/FaultMediatorTest.java
Mon Feb 16 15:39:46 2009
@@ -20,6 +20,8 @@
 package org.apache.synapse.mediators.transform;
 
 import junit.framework.TestCase;
+
+import org.apache.axiom.soap.SOAP11Constants;
 import org.apache.axiom.soap.SOAPEnvelope;
 import org.apache.axiom.soap.SOAPFault;
 import org.apache.synapse.MessageContext;
@@ -57,5 +59,6 @@
         assertTrue(F_STRING.equals(fault.getReason().getText()));
         assertTrue(F_ACTOR_URI.equals(fault.getRole().getRoleValue()));
         assertTrue(F_DETAIL.equals(fault.getDetail().getText()));
+        assertEquals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI, envelope.getNamespace().getNamespaceURI());
     }
 }



Mime
View raw message