avoid FX img in Junit Test
This commit is contained in:
@@ -117,8 +117,9 @@ public class CardDeck {
|
|||||||
logger.error(e);
|
logger.error(e);
|
||||||
throw new LoadingCardsException("file not found");
|
throw new LoadingCardsException("file not found");
|
||||||
}
|
}
|
||||||
loadCardImage(tribe);
|
// Avoid loading FX Image during Junit Tests
|
||||||
loadCardImage(building);
|
if (!shuffle)loadCardImage(tribe);
|
||||||
|
if (!shuffle)loadCardImage(building);
|
||||||
|
|
||||||
if (shuffle) building = CardDeck.shuffle(building);
|
if (shuffle) building = CardDeck.shuffle(building);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user