axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wood...@apache.org
Subject svn commit: r641366 - /webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/MtomSampleTests.java
Date Wed, 26 Mar 2008 16:08:35 GMT
Author: woodroy
Date: Wed Mar 26 09:08:33 2008
New Revision: 641366

URL: http://svn.apache.org/viewvc?rev=641366&view=rev
Log:
AXIS2-3652
Contributor: Roy Wood

JAXWS - not correctly detecting version mismatch

Modified:
    webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/MtomSampleTests.java

Modified: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/MtomSampleTests.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/MtomSampleTests.java?rev=641366&r1=641365&r2=641366&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/MtomSampleTests.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/MtomSampleTests.java
Wed Mar 26 09:08:33 2008
@@ -55,7 +55,7 @@
     private static final String URL_ENDPOINT = "http://localhost:6060/axis2/services/MtomSampleService.MtomSampleServicePort";
     private static final String IMAGE_DIR = System.getProperty("basedir",".")+"/"+"test-resources"+File.separator+"image";
  
     
-    private static boolean CHECK_VERSIONMISMATCH = false;
+    private static boolean CHECK_VERSIONMISMATCH = true;
     
     public static Test suite() {
         return getTestSetup(new TestSuite(MtomSampleTests.class));
@@ -247,8 +247,9 @@
                            fault != null);
                 QName faultCode = sfe.getFault().getFaultCodeAsQName();
 
-                assertTrue("Expected VERSION MISMATCH but received: "+ faultCode,
-                           SOAPConstants.SOAP_VERSIONMISMATCH_FAULT.equals(faultCode));
+              assertTrue("Expected VERSION MISMATCH but received: "+ faultCode,
+            		  new QName(SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE, "VersionMismatch", SOAPConstants.SOAP_ENV_PREFIX).equals(faultCode));
+
             }
         }
         
@@ -318,7 +319,8 @@
                 QName faultCode = sfe.getFault().getFaultCodeAsQName();
 
                 assertTrue("Expected VERSION MISMATCH but received: "+ faultCode,
-                           SOAPConstants.SOAP_VERSIONMISMATCH_FAULT.equals(faultCode));
+              		  new QName(SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE, "VersionMismatch", SOAPConstants.SOAP_ENV_PREFIX).equals(faultCode));
+
             }
         }
         /*



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message