use of com.tvd12.ezyfoxserver.socket.EzyRequestQueue 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);
}
Aggregations