Search in sources :

Example 1 with StopSearchLadder1v1ClientMessage

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));
}
Also used : StopSearchLadder1v1ClientMessage(com.faforever.client.rankedmatch.StopSearchLadder1v1ClientMessage) Test(org.junit.Test) AbstractPlainJavaFxTest(com.faforever.client.test.AbstractPlainJavaFxTest)

Example 2 with StopSearchLadder1v1ClientMessage

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;
}
Also used : StopSearchLadder1v1ClientMessage(com.faforever.client.rankedmatch.StopSearchLadder1v1ClientMessage)

Aggregations

StopSearchLadder1v1ClientMessage (com.faforever.client.rankedmatch.StopSearchLadder1v1ClientMessage)2 AbstractPlainJavaFxTest (com.faforever.client.test.AbstractPlainJavaFxTest)1 Test (org.junit.Test)1