diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-03-29 09:47:28 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-10-01 13:55:37 +0200 |
commit | 67e0482236192c18f4ec24f675d13446313d85e4 (patch) | |
tree | b631c4010af913de8c6327e5a7eb29509d2d6a25 /dbaccess | |
parent | f1b1ae76246c3d63567b4982e46229cbde324c8e (diff) |
fs34b: after the test, close all documents opened during the test
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/qa/complex/dbaccess/CopyTableWizard.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dbaccess/qa/complex/dbaccess/CopyTableWizard.java b/dbaccess/qa/complex/dbaccess/CopyTableWizard.java index 1facca3d8497..0da7775e7c30 100644 --- a/dbaccess/qa/complex/dbaccess/CopyTableWizard.java +++ b/dbaccess/qa/complex/dbaccess/CopyTableWizard.java @@ -59,6 +59,7 @@ public class CopyTableWizard extends CRMBasedTestCase { private DatabaseApplication source; + private DbaseDatabase destinationDB = null; private DatabaseApplication dest; public CopyTableWizard() @@ -73,6 +74,9 @@ public class CopyTableWizard extends CRMBasedTestCase public void after() { dest.store(); + if ( destinationDB != null ) + destinationDB.close(); + destinationDB = null; super.after(); } @@ -83,8 +87,9 @@ public class CopyTableWizard extends CRMBasedTestCase try { createTestCase(); - source = new DatabaseApplication(this.m_database.getDatabase()); - dest = new DatabaseApplication(new DbaseDatabase(getMSF())); + source = new DatabaseApplication(m_database.getDatabase()); + destinationDB = new DbaseDatabase( getMSF() ); + dest = new DatabaseApplication( destinationDB ); } catch (java.lang.Exception ex) { |