Page 1 of 1

Getting test class set up

PostPosted: 25 Jun 2012, 19:50
by mcrawford620
I was trying to set up a simple test class to "watch" the AI pick a card from a booster pack. Not really a test, but just a way to get an AI pick from a booster without loading up the whole actual GUI. But I keep getting stuck on trying to load the card database. Here's what I've tried:

Code: Select all
final CardFactoryInterface cf = AllZone.getCardFactory(); // copied from RunTest.java
final BoosterGenerator pack = new BoosterGenerator(CardPrinted.Predicates.printedInSets("M12"));
List<CardPrinted> cards = pack.getBoosterPack(10, 3, 1, 0, 0, 0, 0, 0, 1);
but it will always bomb on CardReader.loadCardsUntilYouFind():
Code: Select all
final FProgressBar barProgress = SplashFrame.PROGRESS_BAR;
What am I missing?