Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikah45 committed Jun 10, 2023
1 parent bd7da67 commit 8a4d4d5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public class PlayerCardControllerTest extends UITest {
public void setUp() throws Exception {
instance = new PlayerCardController(uiService, countryFlagService, avatarService, contextMenuBuilder, i18n);

when(uiService.getImage(UiService.RANDOM_FACTION_IMAGE)).thenReturn(new Image(UiService.RANDOM_FACTION_IMAGE));
when(uiService.createShowingProperty(any())).thenReturn(new SimpleBooleanProperty(true));
loadFxml("theme/player_card.fxml", clazz -> instance);
}
Expand Down

0 comments on commit 8a4d4d5

Please sign in to comment.