use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method gameMods.
@Test
public void gameMods() throws Exception {
ClientMessage result = instance.transform(write(new GameModsClientMessage(Arrays.asList("1", "2"))));
assertThat(result, is(new GameModsReport(Arrays.asList("1", "2"))));
}
use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method listIceServers.
@Test
public void listIceServers() throws Exception {
ClientMessage result = instance.transform(write(new ListIceServersClientMessage()));
assertThat(result, is(IceServersRequest.INSTANCE));
}
use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method gameOption.
@Test
public void gameOption() throws Exception {
ClientMessage result = instance.transform(write(new GameOptionClientMessage("key", "value")));
assertThat(result, is(new GameOptionReport("key", "value")));
}
use of com.faforever.server.common.ClientMessage 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.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method teamKill.
@Test
public void teamKill() throws Exception {
ClientMessage result = instance.transform(write(new TeamKillClientMessage(100, 1, "A", 2, "B")));
assertThat(result, is(new TeamKillReport(Duration.ofSeconds(100), 1, "A", 2, "B")));
}
Aggregations