Search in sources :

Example 1 with GameChatMessageReport

use of com.faforever.server.game.GameChatMessageReport 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")));
}
Also used : GameChatMessageReport(com.faforever.server.game.GameChatMessageReport) ClientMessage(com.faforever.server.common.ClientMessage) Test(org.junit.Test)

Example 2 with GameChatMessageReport

use of com.faforever.server.game.GameChatMessageReport in project faf-java-server by FAForever.

the class LegacyRequestTransformerTest method chat.

@Test
public void chat() {
    GameChatMessageReport result = (GameChatMessageReport) instance.transform(ImmutableMap.of(KEY_COMMAND, "Chat", KEY_ARGS, Collections.singletonList("Message")));
    assertThat(result.getMessage(), is("Message"));
}
Also used : GameChatMessageReport(com.faforever.server.game.GameChatMessageReport) Test(org.junit.Test)

Aggregations

GameChatMessageReport (com.faforever.server.game.GameChatMessageReport)2 Test (org.junit.Test)2 ClientMessage (com.faforever.server.common.ClientMessage)1