use of com.tvd12.ezyfoxserver.exception.EzyRequestHandleException in project ezyfox-server by youngmonkeys.
the class EzyRequestHandleExceptionTest method test2.
@Test
public void test2() {
EzySession session = Mockito.mock(EzySession.class);
Mockito.when(session.getName()).thenReturn("hello world");
EzyRequestHandleException exception = EzyRequestHandleException.requestHandleException(session, EzyCommand.LOGIN, new Object(), new Exception());
assert exception.getSession() == session;
assert exception.getCommand() == EzyCommand.LOGIN;
assert exception.getData() != null;
}
Aggregations