use of com.faforever.server.client.BroadcastRequest in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method broadcast.
@Test
public void broadcast() throws Exception {
ClientMessage result = instance.transform(write(new BroadcastClientMessage("Hello JUnit")));
assertThat(result, is(new BroadcastRequest("Hello JUnit")));
}
use of com.faforever.server.client.BroadcastRequest in project faf-java-server by FAForever.
the class LegacyRequestTransformerTest method broadcastRequest.
@Test
public void broadcastRequest() throws Exception {
BroadcastRequest request = (BroadcastRequest) instance.transform(ImmutableMap.of(KEY_COMMAND, COMMAND_ADMIN, KEY_ACTION, "broadcast", "message", "Hello world"));
assertThat(request.getMessage(), is("Hello world"));
}
Aggregations