avoid FX img in Junit Test

This commit is contained in:
2026-04-14 12:43:42 +02:00
parent b9d32ed08e
commit e64e44808d

View File

@@ -117,8 +117,9 @@ public class CardDeck {
logger.error(e);
throw new LoadingCardsException("file not found");
}
loadCardImage(tribe);
loadCardImage(building);
// Avoid loading FX Image during Junit Tests
if (!shuffle)loadCardImage(tribe);
if (!shuffle)loadCardImage(building);
if (shuffle) building = CardDeck.shuffle(building);