Author: veithen
Date: Sat Dec 6 10:16:53 2008
New Revision: 724021
URL: http://svn.apache.org/viewvc?rev=724021&view=rev
Log:
SOAPMessageTest: Don't intercept exceptions in the test case. That way we will
get a more meaningful message if the test fails.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPMessageTest.java
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPMessageTest.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPMessageTest.java?rev=724021&r1=724020&r2=724021&view=diff
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPMessageTest.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAPMessageTest.java
Sat Dec 6 10:16:53 2008
@@ -28,14 +28,10 @@
super(testName);
}
- public void testSOAPMessageCreation() {
- try {
- StAXSOAPModelBuilder soapBuilder = getOMBuilder("");
- SOAPMessage soapMessage = soapBuilder.getSoapMessage();
- assertNotNull(soapMessage);
- assertNotNull(soapMessage.getSOAPEnvelope());
- } catch (Exception e) {
- fail("Exception thrown " + e);
- }
+ public void testSOAPMessageCreation() throws Exception {
+ StAXSOAPModelBuilder soapBuilder = getOMBuilder("");
+ SOAPMessage soapMessage = soapBuilder.getSoapMessage();
+ assertNotNull(soapMessage);
+ assertNotNull(soapMessage.getSOAPEnvelope());
}
}