mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
32 lines
601 B
Java
32 lines
601 B
Java
package com.avaje.ebeaninternal.server.lib;
|
|
|
|
import com.avaje.ebean.BaseTestCase;
|
|
import com.avaje.ebean.Ebean;
|
|
import org.junit.Ignore;
|
|
import org.junit.Test;
|
|
|
|
public class ShutdownManagerTest extends BaseTestCase {
|
|
|
|
/**
|
|
* Run this test manually.
|
|
*/
|
|
@Ignore
|
|
@Test
|
|
public void test_deregisterShutdownHook() {
|
|
|
|
Ebean.getDefaultServer();
|
|
ShutdownManager.deregisterShutdownHook();
|
|
}
|
|
|
|
/**
|
|
* Run this test manually.
|
|
*/
|
|
@Ignore
|
|
@Test
|
|
public void test_noShutdownHook() {
|
|
|
|
System.setProperty("ebean.registerShutdownHook","false");
|
|
Ebean.getDefaultServer();
|
|
}
|
|
|
|
} |