db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r602208 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
Date Fri, 07 Dec 2007 20:29:46 GMT
Author: djd
Date: Fri Dec  7 12:29:46 2007
New Revision: 602208

URL: http://svn.apache.org/viewvc?rev=602208&view=rev
Log:
Minor cleanup in BaseTestCase to get the current test configuration once instead of twice
from the thread local.

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=602208&r1=602207&r2=602208&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 Fri Dec
 7 12:29:46 2007
@@ -74,7 +74,8 @@
      * setUp, tearDown methods and decorators.
      */
     public void runBare() throws Throwable {
-        boolean trace = TestConfiguration.getCurrent().doTrace();
+        TestConfiguration config = getTestConfiguration();
+        boolean trace = config.doTrace();
         long startTime = 0;
         if ( trace )
         {
@@ -85,7 +86,7 @@
         // installed
         if ( System.getSecurityManager() == null )
         {
-            if (getTestConfiguration().defaultSecurityManagerSetup())
+            if (config.defaultSecurityManagerSetup())
             {
     		assertSecurityManager();
             }



Mime
View raw message