Search in sources :

Example 1 with EzySimpleServerContextBuilder

use of com.tvd12.ezyfoxserver.builder.EzySimpleServerContextBuilder in project ezyfox-server by youngmonkeys.

the class EzySimpleServerContextBuilderTest method test.

@SuppressWarnings("rawtypes")
@Test
public void test() {
    EzySimpleServerContextBuilder instance = new EzySimpleServerContextBuilder();
    MethodInvoker.create().object(instance).method("newAppExecutorService").param(EzyAppSetting.class, new EzySimpleAppSetting()).invoke();
    MethodInvoker.create().object(instance).method("newPluginExecutorService").param(EzyPluginSetting.class, new EzySimplePluginSetting()).invoke();
}
Also used : EzyAppSetting(com.tvd12.ezyfoxserver.setting.EzyAppSetting) EzySimpleAppSetting(com.tvd12.ezyfoxserver.setting.EzySimpleAppSetting) EzySimpleServerContextBuilder(com.tvd12.ezyfoxserver.builder.EzySimpleServerContextBuilder) EzyPluginSetting(com.tvd12.ezyfoxserver.setting.EzyPluginSetting) EzySimplePluginSetting(com.tvd12.ezyfoxserver.setting.EzySimplePluginSetting) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Aggregations

EzySimpleServerContextBuilder (com.tvd12.ezyfoxserver.builder.EzySimpleServerContextBuilder)1 EzyAppSetting (com.tvd12.ezyfoxserver.setting.EzyAppSetting)1 EzyPluginSetting (com.tvd12.ezyfoxserver.setting.EzyPluginSetting)1 EzySimpleAppSetting (com.tvd12.ezyfoxserver.setting.EzySimpleAppSetting)1 EzySimplePluginSetting (com.tvd12.ezyfoxserver.setting.EzySimplePluginSetting)1 BaseTest (com.tvd12.test.base.BaseTest)1 Test (org.testng.annotations.Test)1