You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by ca...@apache.org on 2011/08/22 18:24:38 UTC

svn commit: r1160321 - /incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystem.java

Author: castagna
Date: Mon Aug 22 16:24:37 2011
New Revision: 1160321

URL: http://svn.apache.org/viewvc?rev=1160321&view=rev
Log:
Let's print stack traces if something bad happens.

Modified:
    incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystem.java

Modified: incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystem.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystem.java?rev=1160321&r1=1160320&r2=1160321&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystem.java (original)
+++ incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystem.java Mon Aug 22 16:24:37 2011
@@ -181,7 +181,7 @@ public class TestTransSystem
                 return null ;
             } catch (RuntimeException ex)
             {
-                System.err.println(ex.getMessage()) ;
+                ex.printStackTrace(System.err) ;
                 if ( dsg != null )
                 {
                     dsg.abort() ;
@@ -249,7 +249,7 @@ public class TestTransSystem
             }
             catch (RuntimeException ex)
             { 
-                System.err.println(ex.getMessage()) ;
+                ex.printStackTrace(System.err) ;
                 if ( dsg != null )
                 {
                     dsg.abort() ;
@@ -306,7 +306,7 @@ public class TestTransSystem
             execService.awaitTermination(100, TimeUnit.SECONDS) ;
         } catch (InterruptedException e)
         {
-            e.printStackTrace();
+            e.printStackTrace(System.err) ;
         }
     }
     
@@ -346,7 +346,7 @@ public class TestTransSystem
             execService.awaitTermination(100, TimeUnit.SECONDS) ;
         } catch (InterruptedException e)
         {
-            e.printStackTrace();
+            e.printStackTrace(System.err) ;
         } 
     }