use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method selectAvatar.
@Test
public void selectAvatar() throws Exception {
ClientMessage result = instance.transform(write(new SelectAvatarClientMessage(1231)));
assertThat(result, is(new SelectAvatarRequest(1231, null)));
}
use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method hostGame.
@Test
public void hostGame() throws Exception {
ClientMessage result = instance.transform(write(new HostGameClientMessage("scmp1", "Game", "faf", "123", GameVisibility.PUBLIC, 500, 900)));
assertThat(result, is(new HostGameRequest("scmp1", "Game", "faf", "123", GameVisibility.PUBLIC, 500, 900)));
}
use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method searchMatch.
@Test
public void searchMatch() throws Exception {
ClientMessage result = instance.transform(write(new SearchMatchClientMessage(Faction.UEF, "ladder1v1")));
assertThat(result, is(new MatchMakerSearchRequest(Faction.UEF, "ladder1v1")));
}
use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method joinGame.
@Test
public void joinGame() throws Exception {
ClientMessage result = instance.transform(write(new JoinGameClientMessage(34, "foobar")));
assertThat(result, is(new JoinGameRequest(34, "foobar")));
}
use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method coopMissionCompleted.
@Test
public void coopMissionCompleted() throws Exception {
ClientMessage result = instance.transform(write(new CoopMissionCompletedClientMessage(true, false, 300)));
assertThat(result, is(new CoopMissionCompletedReport(true, false, Duration.ofSeconds(300))));
}
Aggregations