use of com.tvd12.ezyfoxserver.EzyStarter in project ezyfox-server by youngmonkeys.
the class EzyStarterTest method notPrintSettings.
@Test
public void notPrintSettings() {
// given
EzyStarter starter = new ExEzyStarter.Builder().build();
EzyConfig config = mock(EzyConfig.class);
when(config.isPrintSettings()).thenReturn(false);
EzySimpleServer server = new EzySimpleServer();
server.setConfig(config);
EzySimpleSettings settings = new EzySimpleSettings();
server.setSettings(settings);
// when
MethodInvoker.create().object(starter).method("startEzyFox").param(EzyServer.class, server).call();
// then
verify(config, times(1)).isPrintSettings();
}
use of com.tvd12.ezyfoxserver.EzyStarter in project ezyfox-server by youngmonkeys.
the class EzyStarterTest method normalCaseTest.
@Test
public void normalCaseTest() throws Exception {
EzyStarter starter = new ExEzyStarter.Builder().configFile("test-data/settings/config.properties").build();
starter.start();
}
Aggregations