No effective change - tidy tests that create unregistered Database instances (shutdown)

This commit is contained in:
rob bygrave committed 2020-10-16 16:04:52 +13:00
1 parent 63116f25ec
commit 8c7a84be9c
8 files changed
+81 -65

No files matched your search

@@ -2,6 +2,7 @@ package org.tests.basic;
import io.ebean.DB;
import io.ebean.Database;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.tests.model.basic.ESimple;
@@ -22,6 +23,11 @@ public class TestQueryUsingDatabase {
DB.byName(SOME_OTHER_DB_NAME).insert(RECORD2);
}
@After
public void shutdown() {
DB.byName(SOME_OTHER_DB_NAME).shutdown();
}
@Test
public void usingNonDefaultDatabase() {
final Database nonDefaultDb = DB.byName(SOME_OTHER_DB_NAME);