use of com.tvd12.ezyfoxserver.config.EzyConfig in project ezyfox-server by youngmonkeys.
the class EzyConfigBuilderTest method test.
@Test
public void test() {
EzyConfig config = new EzyConfigBuilder().ezyfoxHome(".").printSettings(true).printBanner(true).bannerFile("banner.txt").loggerConfigFile("log.properties").enableAppClassLoader(true).build();
assertEquals(config.getEzyfoxHome(), ".");
assertTrue(config.isPrintSettings());
assertTrue(config.isPrintBanner());
assertEquals(config.getBannerFile(), "banner.txt");
assertEquals(config.getLoggerConfigFile(), "log.properties");
assertTrue(config.isEnableAppClassLoader());
}
use of com.tvd12.ezyfoxserver.config.EzyConfig in project ezyfox-server by youngmonkeys.
the class EzySimpleConfigLoaderTest method loadFilePathNullTest.
@Test
public void loadFilePathNullTest() {
// given
EzySimpleConfigLoader sut = new EzySimpleConfigLoader();
// when
EzyConfig config = sut.load(null);
// then
Asserts.assertEquals(EzySimpleConfig.defaultConfig(), config);
}
use of com.tvd12.ezyfoxserver.config.EzyConfig in project ezyfox-server by youngmonkeys.
the class EzyLoaderTest method test.
@Test
public void test() throws Exception {
EzySimpleServer server = newServer();
EzyConfig config = server.getConfig();
assertEquals(config.getEzyfoxHome(), "test-data");
assertEquals(config.getLoggerConfigFile(), "logback.groovy");
}
Aggregations