use of com.tvd12.ezyfoxserver.setting.EzyEventControllerSettingBuilder 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());
}
Aggregations