mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1257 - ServerConfig with register = true, defaultServer = false ... fails as it tries to create the default server
This commit is contained in:
@@ -14,7 +14,7 @@ public class PrimaryServerTest extends BaseTestCase {
|
||||
|
||||
|
||||
@Test
|
||||
public void testIsSkipPrimaryServer() throws Exception {
|
||||
public void testIsSkipPrimaryServer() {
|
||||
PrimaryServer.setSkip(true);
|
||||
assertTrue(PrimaryServer.isSkip());
|
||||
PrimaryServer.setSkip(false);
|
||||
@@ -23,14 +23,14 @@ public class PrimaryServerTest extends BaseTestCase {
|
||||
|
||||
@Test
|
||||
@ForPlatform(Platform.H2)
|
||||
public void testGetPrimaryServerName() throws Exception {
|
||||
public void testGetPrimaryServerName() {
|
||||
|
||||
String primaryServerName = PrimaryServer.getDefaultServerName();
|
||||
assertEquals("h2", primaryServerName);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLoadProperties() throws Exception {
|
||||
public void testLoadProperties() {
|
||||
|
||||
Properties properties = PrimaryServer.getProperties();
|
||||
assertTrue(!properties.isEmpty());
|
||||
|
||||
Reference in New Issue
Block a user