Search in sources :

Example 1 with RestoreGameSessionRequest

use of com.faforever.server.integration.legacy.transformer.RestoreGameSessionRequest in project faf-java-server by FAForever.

the class V2ClientMessageTransformerTest method restoreGameSession.

@Test
public void restoreGameSession() throws Exception {
    ClientMessage result = instance.transform(write(new RestoreGameSessionClientMessage(123)));
    assertThat(result, is(new RestoreGameSessionRequest(123)));
}
Also used : RestoreGameSessionRequest(com.faforever.server.integration.legacy.transformer.RestoreGameSessionRequest) ClientMessage(com.faforever.server.common.ClientMessage) Test(org.junit.Test)

Example 2 with RestoreGameSessionRequest

use of com.faforever.server.integration.legacy.transformer.RestoreGameSessionRequest in project faf-java-server by FAForever.

the class GameServiceActivatorsTest method restoreGameSession.

@Test
public void restoreGameSession() throws Exception {
    instance.restoreGameSession(new RestoreGameSessionRequest(5), clientConnection.getAuthentication());
    verify(gameService).restoreGameSession(player, 5);
}
Also used : RestoreGameSessionRequest(com.faforever.server.integration.legacy.transformer.RestoreGameSessionRequest) Test(org.junit.Test)

Aggregations

RestoreGameSessionRequest (com.faforever.server.integration.legacy.transformer.RestoreGameSessionRequest)2 Test (org.junit.Test)2 ClientMessage (com.faforever.server.common.ClientMessage)1