servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r516413 - /incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/test/java/org/apache/servicemix/http/HttpSoapTest.java
Date Fri, 09 Mar 2007 14:24:53 GMT
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));



Mime
View raw message