use of com.faforever.client.preferences.event.MissingGamePathEvent in project downlords-faf-client by FAForever.
the class Ladder1V1ControllerTest method testOnPlayButtonClickedWithNoGamePath.
@Test
public void testOnPlayButtonClickedWithNoGamePath() throws Exception {
when(forgedAlliancePrefs.getPath()).thenReturn(null);
instance.onPlayButtonClicked();
verify(gameService, never()).startSearchLadder1v1(any());
verify(eventBus).post(new MissingGamePathEvent(true));
assertThat(instance.cancelButton.isVisible(), is(false));
assertThat(instance.playButton.isVisible(), is(true));
assertThat(instance.searchProgressIndicator.isVisible(), is(false));
assertThat(instance.searchingForOpponentLabel.isVisible(), is(false));
}
Aggregations