Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 31972 invoked from network); 25 Aug 2006 14:53:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Aug 2006 14:53:23 -0000 Received: (qmail 68490 invoked by uid 500); 25 Aug 2006 14:53:23 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 68418 invoked by uid 500); 25 Aug 2006 14:53:23 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 68406 invoked by uid 99); 25 Aug 2006 14:53:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 07:53:23 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 07:53:22 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 7E1471A981D; Fri, 25 Aug 2006 07:53:02 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r436820 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/junit/BaseTestCase.java Date: Fri, 25 Aug 2006 14:53:02 -0000 To: derby-commits@db.apache.org From: djd@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060825145302.7E1471A981D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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(); }