Author: ningjiang
Date: Tue Aug 19 23:41:53 2008
New Revision: 687261
URL: http://svn.apache.org/viewvc?rev=687261&view=rev
Log:
CAMEL-835 add some comments on the CxfCustomizedExceptionTest
Modified:
activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfCustomizedExceptionTest.java
Modified:
activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfCustomizedExceptionTest.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfCustomizedExceptionTest.java?rev=687261&r1=687260&r2=687261&view=diff
==============================================================================
---
activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfCustomizedExceptionTest.java
(original)
+++
activemq/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfCustomizedExceptionTest.java
Tue Aug 19 23:41:53 2008
@@ -96,6 +96,7 @@
assertEquals("Expect to get right exception message",
EXCEPTION_MESSAGE, e.getMessage());
assertTrue("Exception is not instance of SoapFault", e instanceof
SoapFault);
assertEquals("Expect to get right detail message", DETAIL_TEXT,
((SoapFault)e).getDetail().getTextContent());
+ //In CXF 2.1.2 , the fault code is per spec , the below fault-code
is for SOAP 1.1
assertEquals("Expect to get right fault-code",
"{http://schemas.xmlsoap.org/soap/envelope/}Client",
((SoapFault)e).getFaultCode().toString());
}