You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2008/05/29 09:33:46 UTC
svn commit: r661240 -
/webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SAAJResultTest.java
Author: davidillsley
Date: Thu May 29 00:33:46 2008
New Revision: 661240
URL: http://svn.apache.org/viewvc?rev=661240&view=rev
Log:
add throws Exception rather than catch(){fail()} to ease debug by providing the full stack trace.
Modified:
webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SAAJResultTest.java
Modified: webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SAAJResultTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SAAJResultTest.java?rev=661240&r1=661239&r2=661240&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SAAJResultTest.java (original)
+++ webservices/axis2/trunk/java/modules/saaj/test/org/apache/axis2/saaj/SAAJResultTest.java Thu May 29 00:33:46 2008
@@ -53,13 +53,9 @@
}
- public void testGetResult() {
- try {
- SAAJResult sr = new SAAJResult();
- Node node = sr.getResult();
- assertNull(node);
- } catch (Exception e) {
- fail("Exception: " + e);
- }
+ public void testGetResult() throws Exception{
+ SAAJResult sr = new SAAJResult();
+ Node node = sr.getResult();
+ assertNull(node);
}
}