mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
30 lines
584 B
Java
30 lines
584 B
Java
package io.ebean;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
import java.util.Properties;
|
|
|
|
import static org.junit.jupiter.api.Assertions.*;
|
|
|
|
class DbPrimaryTest {
|
|
|
|
@Test
|
|
void testIsSkipPrimaryServer() {
|
|
DbPrimary.setSkip(true);
|
|
assertTrue(DbPrimary.isSkip());
|
|
DbPrimary.setSkip(false);
|
|
assertFalse(DbPrimary.isSkip());
|
|
}
|
|
|
|
@Test
|
|
void testGetPrimaryServerName() {
|
|
assertEquals("h2", DbPrimary.getDefaultServerName());
|
|
}
|
|
|
|
@Test
|
|
void testLoadProperties() {
|
|
Properties properties = DbPrimary.getProperties();
|
|
assertFalse(properties.isEmpty());
|
|
}
|
|
}
|