db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r436820 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java
Date Fri, 25 Aug 2006 14:53:02 GMT
Author: djd
Date: Fri Aug 25 07:53:01 2006
New Revision: 436820

URL: http://svn.apache.org/viewvc?rev=436820&view=rev
Log:
Make BaseTestCase install a security manager for its tests including adapting to the existing
test
harness by not installing a security manager in that case. Allows JUnit tests to be run standalone
while installing a security manager automatically. Does require that the caller sets derby.system.home
when running the tests in JUnit test runners outside of the old harness. This will be addressed
to
remove that requirement.

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=436820&r1=436819&r2=436820&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 Aug
25 07:53:01 2006
@@ -70,9 +70,8 @@
      * setUp, tearDown methods and decorators.
      */
     public final void runBare() throws Throwable {
-        // still not ready for prime time
-    	//if (getTestConfiguration().defaultSecurityManagerSetup())
-    	//	assertSecurityManager();
+    	if (getTestConfiguration().defaultSecurityManagerSetup())
+    		assertSecurityManager();
     	 
     	super.runBare();   
     }



Mime
View raw message