Search in sources :

Example 1 with EzyNioServerBootstrapBuilderImpl

use of com.tvd12.ezyfoxserver.nio.builder.impl.EzyNioServerBootstrapBuilderImpl 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();
}
Also used : EzySimpleConfig(com.tvd12.ezyfoxserver.config.EzySimpleConfig) EzySimpleServer(com.tvd12.ezyfoxserver.EzySimpleServer) EzySimpleSettings(com.tvd12.ezyfoxserver.setting.EzySimpleSettings) EzyNioServerBootstrapBuilderImpl(com.tvd12.ezyfoxserver.nio.builder.impl.EzyNioServerBootstrapBuilderImpl) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Aggregations

EzySimpleServer (com.tvd12.ezyfoxserver.EzySimpleServer)1 EzySimpleConfig (com.tvd12.ezyfoxserver.config.EzySimpleConfig)1 EzyNioServerBootstrapBuilderImpl (com.tvd12.ezyfoxserver.nio.builder.impl.EzyNioServerBootstrapBuilderImpl)1 EzySimpleSettings (com.tvd12.ezyfoxserver.setting.EzySimpleSettings)1 BaseTest (com.tvd12.test.base.BaseTest)1 Test (org.testng.annotations.Test)1