use of com.tvd12.ezyfoxserver.command.impl.EzyCloseSessionImpl in project ezyfox-server by youngmonkeys.
the class EzyCloseSessionImplTest method test.
@Test
public void test() {
EzyServerContext serverContext = mock(EzyServerContext.class);
EzyCloseSessionImpl cmd = new EzyCloseSessionImpl(serverContext);
EzyAbstractSession session = spy(EzyAbstractSession.class);
EzyChannel channel = mock(EzyChannel.class);
session.setChannel(channel);
cmd.close(session, EzyDisconnectReason.ADMIN_BAN);
}
use of com.tvd12.ezyfoxserver.command.impl.EzyCloseSessionImpl in project ezyfox-server by youngmonkeys.
the class EzyCloseSessionImplTest method noSendToClient.
@Test
public void noSendToClient() {
EzyServerContext serverContext = mock(EzyServerContext.class);
EzyCloseSessionImpl cmd = new EzyCloseSessionImpl(serverContext);
EzyAbstractSession session = spy(EzyAbstractSession.class);
EzyChannel channel = mock(EzyChannel.class);
session.setChannel(channel);
cmd.close(session, EzyDisconnectReason.UNKNOWN);
}
Aggregations