You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2007/03/09 15:24:53 UTC

svn commit: r516413 - /incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/test/java/org/apache/servicemix/http/HttpSoapTest.java

Author: gnodet
Date: Fri Mar  9 06:24:52 2007
New Revision: 516413

URL: http://svn.apache.org/viewvc?view=rev&rev=516413
Log:
SM-873, SM-874: invalid faults returned when the xml is invalid / soap version not honored

Modified:
    incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/test/java/org/apache/servicemix/http/HttpSoapTest.java

Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/test/java/org/apache/servicemix/http/HttpSoapTest.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/test/java/org/apache/servicemix/http/HttpSoapTest.java?view=diff&rev=516413&r1=516412&r2=516413
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/test/java/org/apache/servicemix/http/HttpSoapTest.java (original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/test/java/org/apache/servicemix/http/HttpSoapTest.java Fri Mar  9 06:24:52 2007
@@ -317,7 +317,7 @@
         state = new HttpClient().executeMethod(method);
         str = method.getResponseBodyAsString();
         logger.info(str);
-        assertEquals(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, state);
+        assertEquals(HttpServletResponse.SC_BAD_REQUEST, state);
         node = st.toDOMNode(new StringSource(str));
         e = ((Document) node).getDocumentElement();
         assertEquals(new QName(SoapMarshaler.SOAP_12_URI, SoapMarshaler.ENVELOPE), DOMUtil.getQName(e));
@@ -412,7 +412,7 @@
         state = new HttpClient().executeMethod(method);
         str = method.getResponseBodyAsString();
         logger.info(str);
-        assertEquals(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, state);
+        assertEquals(HttpServletResponse.SC_BAD_REQUEST, state);
         node = st.toDOMNode(new StringSource(str));
         e = ((Document) node).getDocumentElement();
         assertEquals(new QName(SoapMarshaler.SOAP_11_URI, SoapMarshaler.ENVELOPE), DOMUtil.getQName(e));