use of com.tvd12.ezyfoxserver.config.EzySimpleConfig in project ezyfox-server by youngmonkeys.
the class EzyConfigTest method getEzyfoxHomeTest.
@Test
public void getEzyfoxHomeTest() {
// given
EzySimpleConfig sut = EzySimpleConfig.defaultConfig();
sut.setEzyfoxHome(null);
sut.setLoggerConfigFile(null);
// when
String home = sut.getEzyfoxHome();
// then
Asserts.assertEquals("", home);
System.out.println(sut.toMap());
}
use of com.tvd12.ezyfoxserver.config.EzySimpleConfig in project ezyfox-server by youngmonkeys.
the class EzyConfigTest method test.
@Test
public void test() {
EzySimpleConfig config = new EzySimpleConfig();
config.setEzyfoxHome("home");
config.setLoggerConfigFile("abc");
assert config.toString() != null;
}
use of com.tvd12.ezyfoxserver.config.EzySimpleConfig in project ezyfox-server by youngmonkeys.
the class EzyNioServerBootstrapBuilderImplTest method test.
@Test
public void test() {
EzySimpleConfig config = new EzySimpleConfig();
EzySimpleSettings settings = new EzySimpleSettings();
settings.getSocket().setCodecCreator(ExCodecCreator.class.getName());
settings.getWebsocket().setCodecCreator(ExCodecCreator.class.getName());
EzySimpleServer server = new EzySimpleServer();
server.setConfig(config);
server.setSettings(settings);
EzyNioServerBootstrapBuilderImpl builder = new EzyNioServerBootstrapBuilderImpl();
builder.server(server);
builder.build();
}
Aggregations