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();
}
Aggregations