use of com.faforever.server.game.DisconnectPeerRequest in project faf-java-server by FAForever.
the class GameServiceActivatorsTest method disconnectFromGame.
@Test
public void disconnectFromGame() throws Exception {
instance.disconnectFromGame(new DisconnectPeerRequest(13), clientConnection.getAuthentication());
verify(gameService).disconnectPlayerFromGame(player, 13);
}
use of com.faforever.server.game.DisconnectPeerRequest in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method disconnectPeer.
@Test
public void disconnectPeer() throws Exception {
ClientMessage result = instance.transform(write(new DisconnectPeerClientMessage(42)));
assertThat(result, is(new DisconnectPeerRequest(42)));
}
use of com.faforever.server.game.DisconnectPeerRequest in project faf-java-server by FAForever.
the class LegacyRequestTransformerTest method closeFa.
@Test
public void closeFa() throws Exception {
DisconnectPeerRequest request = (DisconnectPeerRequest) instance.transform(ImmutableMap.of(KEY_COMMAND, COMMAND_ADMIN, KEY_ACTION, "closeFA", "user_id", 1));
assertThat(request.getPlayerId(), is(1));
}
Aggregations