use of com.faforever.client.player.Player in project downlords-faf-client by FAForever.
the class ReplayDetailControllerTest method setUp.
@Before
public void setUp() throws Exception {
instance = new ReplayDetailController(timeService, i18n, uiService, replayService, ratingService, mapService, playerService, reviewService, clientProperties);
when(reviewsController.getRoot()).thenReturn(new Pane());
when(playerService.getCurrentPlayer()).thenReturn(Optional.of(new Player("junit")));
loadFxml("theme/vault/replay/replay_detail.fxml", param -> {
if (param == ReviewsController.class) {
return reviewsController;
}
if (param == StarsController.class) {
return starsController;
}
if (param == StarController.class) {
return starController;
}
if (param == ReviewController.class) {
return reviewController;
}
return instance;
});
assertThat(instance.moreInformationPane.isVisible(), is(false));
assertThat(instance.moreInformationPane.isManaged(), is(false));
}
Aggregations