Author: veithen
Date: Thu Jun 18 21:16:26 2015
New Revision: 1686321
URL: http://svn.apache.org/r1686321
Log:
Let JUnit report exceptions.
Modified:
axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/rest/RESTfulServiceTest.java
Modified:
axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/rest/RESTfulServiceTest.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/rest/RESTfulServiceTest.java?rev=1686321&r1=1686320&r2=1686321&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/rest/RESTfulServiceTest.java
(original)
+++
axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/rest/RESTfulServiceTest.java
Thu Jun 18 21:16:26 2015
@@ -135,7 +135,7 @@ public class RESTfulServiceTest extends
}
- public void testRESTMethods() throws AxisFault {
+ public void testRESTMethods() throws Exception {
HttpClient httpClient = new HttpClient();
@@ -153,10 +153,6 @@ public class RESTfulServiceTest extends
OMElement returnElem = response.getFirstChildWithName(new
QName("return"));
assertEquals("IBM stock added with value : 34.7",
returnElem.getText());
- } catch (Exception e) {
- System.err.println("Error occurred while trying to invoke method:
" + e.getMessage());
- e.printStackTrace();
- fail("Caught exception " + e.toString());
} finally {
method1.releaseConnection();
}
@@ -176,10 +172,6 @@ public class RESTfulServiceTest extends
OMElement returnElem = response.getFirstChildWithName(new
QName("return"));
assertEquals("34.7", returnElem.getText());
- } catch (Exception e) {
- System.err.println("Error occurred while trying to invoke method:
" + e.getMessage());
- e.printStackTrace();
- fail("Caught exception " + e.toString());
} finally {
method2.releaseConnection();
}