You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2015/11/24 09:12:57 UTC

svn commit: r1716056 - /axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java

Author: veithen
Date: Tue Nov 24 08:12:57 2015
New Revision: 1716056

URL: http://svn.apache.org/viewvc?rev=1716056&view=rev
Log:
Remove unnecessary code.

Modified:
    axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java

Modified: axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java?rev=1716056&r1=1716055&r2=1716056&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java (original)
+++ axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/handler/HandlerPrePostInvokerTests.java Tue Nov 24 08:12:57 2015
@@ -104,15 +104,11 @@ public class HandlerPrePostInvokerTests
         HandlerChainProcessor processor =
                 new HandlerChainProcessor(handlers, Protocol.soap11);
         boolean success = true;
-        try {
-            // server-side incoming request
-            success = processor.processChain(mc.getMEPContext(),
-                                    HandlerChainProcessor.Direction.IN,
-                                    HandlerChainProcessor.MEP.REQUEST,
-                                    true);
-        } catch (Exception e) {
-            assertNull(e);  // should not get exception
-        }
+        // server-side incoming request
+        success = processor.processChain(mc.getMEPContext(),
+                                HandlerChainProcessor.Direction.IN,
+                                HandlerChainProcessor.MEP.REQUEST,
+                                true);
         
         assertTrue("processChain should have succeeded", success);
         assertTrue("preInvoker should have been called", preInvokerCalled);
@@ -130,15 +126,11 @@ public class HandlerPrePostInvokerTests
         HandlerChainProcessor processor =
                 new HandlerChainProcessor(handlers, Protocol.soap11);
         boolean success = true;
-        try {
-            // server-side incoming request
-            success = processor.processChain(mc.getMEPContext(),
-                                    HandlerChainProcessor.Direction.IN,
-                                    HandlerChainProcessor.MEP.REQUEST,
-                                    true);
-        } catch (Exception e) {
-            assertNull(e);  // should not get exception
-        }
+        // server-side incoming request
+        success = processor.processChain(mc.getMEPContext(),
+                                HandlerChainProcessor.Direction.IN,
+                                HandlerChainProcessor.MEP.REQUEST,
+                                true);
         
         assertTrue("processChain should have succeeded", success);
         assertTrue("postInvoker should have been called", postInvokerCalled);