use of com.tvd12.ezyfoxserver.socket.EzySocketSystemRequestHandler in project ezyfox-server by youngmonkeys.
the class EzySocketSystemRequestHandlerTest method test.
@Test
public void test() {
EzySocketSystemRequestHandler handler = new EzySocketSystemRequestHandler();
MethodInvoker.create().object(handler).method("getRequestType").invoke();
}
use of com.tvd12.ezyfoxserver.socket.EzySocketSystemRequestHandler in project ezyfox-server by youngmonkeys.
the class EzySocketSystemRequestHandlerTest method getRequestQueueTest.
@Test
public void getRequestQueueTest() {
// given
EzySocketSystemRequestHandler sut = new EzySocketSystemRequestHandler();
EzySession session = mock(EzySession.class);
EzyRequestQueue requestQueue = mock(EzyRequestQueue.class);
when(session.getSystemRequestQueue()).thenReturn(requestQueue);
// when
EzyRequestQueue result = MethodInvoker.create().object(sut).method("getRequestQueue").param(EzySession.class, session).call();
// then
Asserts.assertEquals(requestQueue, result);
}
Aggregations