use of com.faforever.server.common.ClientMessage 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)));
}
use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method gameChatMessage.
@Test
public void gameChatMessage() throws Exception {
ClientMessage result = instance.transform(write(new GameChatMessageClientMessage("Message")));
assertThat(result, is(new GameChatMessageReport("Message")));
}
use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method armyScore.
@Test
public void armyScore() throws Exception {
ClientMessage result = instance.transform(write(new ArmyScoreClientMessage(1, 10)));
assertThat(result, is(new ArmyScoreReport(1, 10)));
}
use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method aiOption.
@Test
public void aiOption() throws Exception {
ClientMessage result = instance.transform(write(new AiOptionClientMessage("junit", "team", "1")));
assertThat(result, is(new AiOptionReport("junit", "team", "1")));
}
use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method playerDefeated.
@Test
public void playerDefeated() throws Exception {
ClientMessage result = instance.transform(write(new PlayerDefeatedClientMessage()));
assertThat(result, is(PlayerDefeatedReport.INSTANCE));
}
Aggregations