* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- */
+ */
package org.wamblee.support.persistence;
import javax.sql.DataSource;
dataSource = db.start();
dbUtils = new DatabaseUtils(dataSource, persistenceUnit.getTables());
+ dbUtils.start();
dbUtils.dropTables();
dbUtils.dropTables(JpaCustomizerBuilder.getCustomizer().getJpaTables());
if (jpaBuilder != null) {
jpaBuilder.stop();
}
+ if (dbUtils != null) {
+ dbUtils.stop();
+ }
if (db != null) {
db.stop();
}