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();
}
/**
return dataSource;
}
- public IDatabaseTester getDbTester() {
- return dbTester;
- }
-
public DatabaseUtils getDbUtils() {
return dbUtils;
}