Search in sources :

Example 1 with EzyEventControllerSetting

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

the class EzyEventControllerSettingBuilderTest method test.

@Test
public void test() {
    // given
    EzyEventControllerSettingBuilder sut = new EzyEventControllerSettingBuilder().controller(A.class).eventType(EzyEventType.SERVER_READY);
    // when
    EzyEventControllerSetting eventController = sut.build();
    // then
    Asserts.assertEquals(A.class.getName(), eventController.getController());
    Asserts.assertEquals(EzyEventType.SERVER_READY.toString(), eventController.getEventType());
}
Also used : EzyEventControllerSettingBuilder(com.tvd12.ezyfoxserver.setting.EzyEventControllerSettingBuilder) EzyEventControllerSetting(com.tvd12.ezyfoxserver.setting.EzyEventControllerSetting) Test(org.testng.annotations.Test)

Aggregations

EzyEventControllerSetting (com.tvd12.ezyfoxserver.setting.EzyEventControllerSetting)1 EzyEventControllerSettingBuilder (com.tvd12.ezyfoxserver.setting.EzyEventControllerSettingBuilder)1 Test (org.testng.annotations.Test)1