It is currently 09 Sep 2025, 16:17
   
Text Size

Getting test class set up

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Getting test class set up

Postby mcrawford620 » 25 Jun 2012, 19:50

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?
mcrawford620
 
Posts: 112
Joined: 25 Jun 2012, 16:59
Has thanked: 55 times
Been thanked: 25 times

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 20 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 20 users online :: 0 registered, 0 hidden and 20 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 20 guests

Login Form