Removed the table names from the persistence unit description.
[utils] / test / enterprise / src / main / java / org / wamblee / support / persistence / JpaTester.java
index 19f7f187d5838f5ef1272db9d67d8934d3a1bb48..e74003f126276fc162cfd0085639c873724111cc 100644 (file)
@@ -94,18 +94,12 @@ public class JpaTester {
             throw new RuntimeException("JNDI problem", e);
         }
 
-        dbUtils = new DatabaseUtils(dataSource, persistenceUnit.getTables());
+        dbUtils = new DatabaseUtils(dataSource);
         dbUtils.start();
-        dbUtils.dropTables();
         dbUtils.dropTables(JpaCustomizerBuilder.getCustomizer().getJpaTables());
 
         jpaBuilder = new JpaBuilder(db.getJdbcUrl(), db.getUsername(), db.getPassword(), persistenceUnit);
         jpaBuilder.start();
-
-        // db tester should be created after Jpa builder because jpa builder
-        // creates the
-        // tables that the tester looks at when it is initialized.
-        dbTester = dbUtils.createDbTester();
     }
 
     /**
@@ -131,10 +125,6 @@ public class JpaTester {
         return dataSource;
     }
 
-    public IDatabaseTester getDbTester() {
-        return dbTester;
-    }
-
     public DatabaseUtils getDbUtils() {
         return dbUtils;
     }