[jbpm-commits] JBoss JBPM SVN: r3304 - jbpm3/trunk/modules/core/src/test/java/org/jbpm/graph/def.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Dec 9 17:16:01 EST 2008


Author: thomas.diesler at jboss.com
Date: 2008-12-09 17:16:01 -0500 (Tue, 09 Dec 2008)
New Revision: 3304

Modified:
   jbpm3/trunk/modules/core/src/test/java/org/jbpm/graph/def/ExceptionHandlerTest.java
Log:
Remove ex.printStackTrace()

Modified: jbpm3/trunk/modules/core/src/test/java/org/jbpm/graph/def/ExceptionHandlerTest.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/graph/def/ExceptionHandlerTest.java	2008-12-09 22:04:57 UTC (rev 3303)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/graph/def/ExceptionHandlerTest.java	2008-12-09 22:16:01 UTC (rev 3304)
@@ -31,22 +31,31 @@
  */
 public class ExceptionHandlerTest extends AbstractJbpmTestCase {
 
-  public static class NoExceptionAction implements ActionHandler {
-    public void execute(ExecutionContext executionContext) throws Exception {
+  public static class NoExceptionAction implements ActionHandler
+  {
+    public void execute(ExecutionContext executionContext) throws Exception
+    {
     }
-  }  
-  public static class ThrowExceptionAction implements ActionHandler {
-    public void execute(ExecutionContext executionContext) throws Exception {
+  }
+
+  public static class ThrowExceptionAction implements ActionHandler
+  {
+    public void execute(ExecutionContext executionContext) throws Exception
+    {
       throw new Exception("exception in action handler");
     }
   }
-  public static class ThrowInnerExceptionAction implements ActionHandler {
-    public void execute(ExecutionContext executionContext) throws Exception {
+
+  public static class ThrowInnerExceptionAction implements ActionHandler
+  {
+    public void execute(ExecutionContext executionContext) throws Exception
+    {
       throw new Exception("exception inside of exception handler");
     }
   }
   
-  public void testExceptionHandlerThrowingExcption() {
+  public void testExceptionHandlerThrowingExcption() 
+  {
    
     String xml = 
       "<?xml version='1.0' encoding='UTF-8'?>"
@@ -65,14 +74,15 @@
       +"   </exception-handler>"
       +"</process-definition>";
     
-    ProcessDefinition def = ProcessDefinition.parseXmlString(xml);   
+    ProcessDefinition def = ProcessDefinition.parseXmlString(xml);
     ProcessInstance pi = def.createProcessInstance();
-    
-    try {
+
+    try
+    {
       pi.getRootToken().signal();
     }
-    catch (DelegationException ex) {
-      ex.printStackTrace();
+    catch (DelegationException ex)
+    {
       // check that exception is thrown to the client nested in a DelegationException
       assertEquals("exception inside of exception handler", ex.getCause().getMessage());
     }
@@ -99,10 +109,12 @@
     ProcessDefinition def = ProcessDefinition.parseXmlString(xml);   
     ProcessInstance pi = def.createProcessInstance();
     
-    try {
+    try
+    {
       pi.getRootToken().signal();
     }
-    catch (DelegationException ex) {
+    catch (DelegationException ex)
+    {
       // check that exception is thrown to the client nested in a DelegationException
       assertEquals(NullPointerException.class, ex.getCause().getClass());
     }




More information about the jbpm-commits mailing list