package forge; import forge.properties.NewConstants; import org.testng.annotations.Test; /** * Created by IntelliJ IDEA. * User: dhudson */ @Test(timeOut = 1000) public class ReadCardTest implements NewConstants { /** * * @deprecated */ // Test(timeOut = 1000) public void ReadCardTest1() { /* try { ReadCard read = new ReadCard(ForgeProps.getFile(CARDSFOLDER)); javax.swing.SwingUtilities.invokeAndWait(read); // read.run(); Card c[] = new Card[read.allCards.size()]; read.allCards.toArray(c); for (int i = 0; i < c.length; i++) { System.out.println(c[i].getName()); System.out.println(c[i].getManaCost()); System.out.println(c[i].getType()); System.out.println(c[i].getSpellText()); System.out.println(c[i].getKeyword()); System.out.println(c[i].getBaseAttack() + "/" + c[i].getBaseDefense() + "\n"); } } catch (Exception ex) { ErrorViewer.showError(ex); System.out.println("Error reading file " + ex); } */ } }