db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r640788 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
Date Tue, 25 Mar 2008 12:34:35 GMT
Author: kmarsden
Date: Tue Mar 25 05:34:34 2008
New Revision: 640788

URL: http://svn.apache.org/viewvc?rev=640788&view=rev
Log:
DERBY-3556 change derby.tests.trace property to print the name of the test before it runs
it

Contributed by Suran Jayathilaka (suranjay at gmail dot com)

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java?rev=640788&r1=640787&r2=640788&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java Tue Mar
25 05:34:34 2008
@@ -85,6 +85,8 @@
         if ( trace )
         {
             startTime = System.currentTimeMillis();
+            out.println();
+            out.print(getName() + " ");
         }
 
         // install a default security manager if one has not already been
@@ -137,8 +139,7 @@
             if ( trace )
             {
                 long timeUsed = System.currentTimeMillis() - startTime;
-                out.println();
-                out.print(getName() + " used " + timeUsed + " ms ");
+                out.print("used " + timeUsed + " ms ");
             }
         }
     }



Mime
View raw message