You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by dj...@apache.org on 2006/08/25 16:53:02 UTC

svn commit: r436820 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java

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();   
     }