Search in sources :

Example 1 with EzySimpleEventControllerSetting

use of com.tvd12.ezyfoxserver.setting.EzySimpleEventControllerSetting in project ezyfox-server by youngmonkeys.

the class EzyEventControllersImplTest method test.

@Test
public void test() {
    EzySimpleEventControllersSetting controllersSetting = new EzySimpleEventControllersSetting();
    EzySimpleEventControllerSetting setting1 = new EzySimpleEventControllerSetting();
    setting1.setEventType(EzyEventType.SERVER_READY.toString());
    setting1.setController(EventController1.class.getName());
    controllersSetting.setItem(setting1);
    EzyEventControllers controllers = EzyEventControllersImpl.create(controllersSetting);
    controllers.addController(EzyEventType.SERVER_INITIALIZING, new EventController2());
    controllers.destroy();
}
Also used : EzyEventControllers(com.tvd12.ezyfoxserver.wrapper.EzyEventControllers) EzySimpleEventControllerSetting(com.tvd12.ezyfoxserver.setting.EzySimpleEventControllerSetting) EzySimpleEventControllersSetting(com.tvd12.ezyfoxserver.setting.EzySimpleEventControllersSetting) Test(org.testng.annotations.Test) BaseTest(com.tvd12.test.base.BaseTest)

Aggregations

EzySimpleEventControllerSetting (com.tvd12.ezyfoxserver.setting.EzySimpleEventControllerSetting)1 EzySimpleEventControllersSetting (com.tvd12.ezyfoxserver.setting.EzySimpleEventControllersSetting)1 EzyEventControllers (com.tvd12.ezyfoxserver.wrapper.EzyEventControllers)1 BaseTest (com.tvd12.test.base.BaseTest)1 Test (org.testng.annotations.Test)1