mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Move ShutdownManager into io.ebean.event
This commit is contained in:
@@ -107,7 +107,7 @@ public class TDSpiEbeanServer implements SpiEbeanServer {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shutdownManaged() {
|
||||
public void shutdown() {
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
package io.ebeaninternal.server.lib;
|
||||
|
||||
import io.ebean.BaseTestCase;
|
||||
import io.ebean.Ebean;
|
||||
import io.ebean.DB;
|
||||
import io.ebean.event.ShutdownManager;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -13,8 +14,7 @@ public class ShutdownManagerTest extends BaseTestCase {
|
||||
@Ignore
|
||||
@Test
|
||||
public void test_deregisterShutdownHook() {
|
||||
|
||||
Ebean.getDefaultServer();
|
||||
DB.getDefault();
|
||||
ShutdownManager.deregisterShutdownHook();
|
||||
}
|
||||
|
||||
@@ -24,9 +24,8 @@ public class ShutdownManagerTest extends BaseTestCase {
|
||||
@Ignore
|
||||
@Test
|
||||
public void test_noShutdownHook() {
|
||||
|
||||
System.setProperty("ebean.registerShutdownHook", "false");
|
||||
Ebean.getDefaultServer();
|
||||
DB.getDefault();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user