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 15:12:07 UTC

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

Author: castagna
Date: Mon Aug 22 13:12:07 2011
New Revision: 1160254

URL: http://svn.apache.org/viewvc?rev=1160254&view=rev
Log: (empty)

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

Modified: incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystemMultiDatasets.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystemMultiDatasets.java?rev=1160254&r1=1160253&r2=1160254&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystemMultiDatasets.java (original)
+++ incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystemMultiDatasets.java Mon Aug 22 13:12:07 2011
@@ -80,7 +80,7 @@ public class TestTransSystemMultiDataset
 
     static final int Iterations             = MEM ? 1000 : 100 ;
     // Output style.
-    static boolean inlineProgress           = false ; // (! log.isDebugEnabled()) && Iterations > 20 ;
+    static boolean inlineProgress           = true ; // (! log.isDebugEnabled()) && Iterations > 20 ;
     static boolean logging                  = ! inlineProgress ; // (! log.isDebugEnabled()) && Iterations > 20 ;
     
     static final int numReaderTasks         = 10 ;
@@ -185,7 +185,7 @@ public class TestTransSystemMultiDataset
                 return null ;
             } catch (RuntimeException ex)
             {
-                System.err.println(ex.getMessage()) ;
+                ex.printStackTrace(System.err) ;
                 if ( dsg != null )
                 {
                     dsg.abort() ;
@@ -254,7 +254,7 @@ public class TestTransSystemMultiDataset
             }
             catch (RuntimeException ex)
             { 
-                System.err.println(ex.getMessage()) ;
+                ex.printStackTrace(System.err) ;
                 if ( dsg != null )
                 {
                     dsg.abort() ;
@@ -315,15 +315,8 @@ public class TestTransSystemMultiDataset
                 return null ;
             } catch (RuntimeException ex)
             {
-                System.err.println(ex.getMessage()) ;
-                ex.printStackTrace() ;
+                ex.printStackTrace(System.err) ;
                 return null ;
-            } finally {
-                if ( dsg != null )
-                {
-                    dsg.close() ;
-                    dsg = null ;
-                }
             }
         }
     }
@@ -379,18 +372,9 @@ public class TestTransSystemMultiDataset
             } 
             catch (RuntimeException ex) 
             { 
-                System.err.println(ex.getMessage()) ;
-                ex.printStackTrace() ;
+                ex.printStackTrace(System.err) ;
                 return null ;
             } 
-            finally 
-            {
-                if ( dsg != null )
-                {
-                    dsg.close() ;
-                    dsg = null ;
-                }
-            }
         }
     
         // return the delta.