use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method login.
@Test
public void login() throws Exception {
ClientMessage result = instance.transform(write(new LoginClientMessage("jwt", "123")));
assertThat(result, is(new LoginRequest("123", "jwt")));
}
use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method disconnectPeer.
@Test
public void disconnectPeer() throws Exception {
ClientMessage result = instance.transform(write(new DisconnectPeerClientMessage(42)));
assertThat(result, is(new DisconnectPeerRequest(42)));
}
use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method iceClient.
@Test
public void iceClient() throws Exception {
ClientMessage result = instance.transform(write(new IceClientMessage(12, "foobar")));
assertThat(result, is(new IceMessage(12, "foobar")));
}
use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method cancelMatchSearch.
@Test
public void cancelMatchSearch() throws Exception {
ClientMessage result = instance.transform(write(new CancelMatchSearchClientMessage("ladder1v1")));
assertThat(result, is(new MatchMakerCancelRequest("ladder1v1")));
}
use of com.faforever.server.common.ClientMessage in project faf-java-server by FAForever.
the class V2ClientMessageTransformerTest method agreeDraw.
@Test
public void agreeDraw() throws Exception {
ClientMessage result = instance.transform(write(new AgreeDrawClientMessage()));
assertThat(result, is(MutuallyAgreedDrawRequest.INSTANCE));
}
Aggregations