avoid FX img in Junit Test
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user