Commits

Anonymous committed 43c5545

fs34b: after the test, close all documents opened during the test

Comments (0)

Files changed (1)

dbaccess/qa/complex/dbaccess/CopyTableWizard.java

 {
 
     private DatabaseApplication source;
+    private DbaseDatabase destinationDB = null;
     private DatabaseApplication dest;
 
     public CopyTableWizard()
     public void after()
     {
         dest.store();
+        if ( destinationDB != null )
+            destinationDB.close();
+        destinationDB = null;
         super.after();
     }
 
         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)
         {