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")));
}
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"));
}
Aggregations