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