[hg] main-silver: #229250: Constantly failing unittest

  • From: Jaroslav Havlin < >
  • To:
  • Subject: [hg] main-silver: #229250: Constantly failing unittest
  • Date: Tue, 04 Jun 2013 13:34:09 -0700

changeset c1ea30fe6dac in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/c1ea30fe6dac
description:
        #229250: Constantly failing unittest

        The attached patch moved "schema" cleaning into test setup, there it 
is save to asume the derby database is available. Without this patch the test 
in DatabaseConnectionTest#testGetJDBCConnectionWithTest fails. The test 
forcibly shuts down the derby database and in turn the tearDown routine 
fails...

        Patch by Matthias42.

diffstat:

 db/test/unit/src/org/netbeans/modules/db/test/DBTestBase.java |  2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diffs (12 lines):

diff --git a/db/test/unit/src/org/netbeans/modules/db/test/DBTestBase.java 
b/db/test/unit/src/org/netbeans/modules/db/test/DBTestBase.java
--- a/db/test/unit/src/org/netbeans/modules/db/test/DBTestBase.java
+++ b/db/test/unit/src/org/netbeans/modules/db/test/DBTestBase.java
@@ -639,8 +639,6 @@
 
     @Override
     protected void tearDown() throws Exception {
-        getConnection();
-        dropSchema();
         removeConnection();
     }
 

[hg] main-silver: #229250: Constantly failing unittest

Jaroslav Havlin 06/04/2013

Project Features

About this Project

DB was started in November 2009, is owned by Antonin Nebuzelsky, and has 113 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close