use of com.faforever.client.rankedmatch.StopSearchLadder1v1ClientMessage in project downlords-faf-client by FAForever.
the class ServerAccessorImplTest method stopSearchingLadder1v1Match.
@Test
public void stopSearchingLadder1v1Match() throws Exception {
connectAndLogIn();
instance.stopSearchingRanked();
String clientMessage = messagesReceivedByFafServer.poll(TIMEOUT, TIMEOUT_UNIT);
StopSearchLadder1v1ClientMessage stopSearchRanked1v1Message = gson.fromJson(clientMessage, StopSearchLadder1v1ClientMessage.class);
assertThat(stopSearchRanked1v1Message, instanceOf(StopSearchLadder1v1ClientMessage.class));
assertThat(stopSearchRanked1v1Message.getCommand(), is(ClientMessageType.GAME_MATCH_MAKING));
}
use of com.faforever.client.rankedmatch.StopSearchLadder1v1ClientMessage in project downlords-faf-client by FAForever.
the class FafServerAccessorImpl method stopSearchingRanked.
@Override
public void stopSearchingRanked() {
writeToServer(new StopSearchLadder1v1ClientMessage());
gameLaunchFuture = null;
}
Aggregations