mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Finally, all quest and duel decks fully encapsulated with acceptable format.
Helper files completely removed (easy.txt, quests.txt, etc.) and hard-coded quest properties are a thing of the past. Model and view fully separated for main panel in quest GUI. Critical file: QuestEventManager can handle instantiation of all decks, once (ideally).
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
package forge;
|
||||
|
||||
import forge.error.ErrorViewer;
|
||||
import forge.properties.ForgeProps;
|
||||
import forge.properties.NewConstants;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: dhudson
|
||||
*/
|
||||
@Test(groups = {"UnitTest"}, timeOut = 1000)
|
||||
public class ReadQuestAssignmentTest implements NewConstants {
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
@Test(groups = {"UnitTest", "fast"}, timeOut = 1000)
|
||||
public void ReadQuestAssignmentTest1() {
|
||||
try {
|
||||
ReadQuest_Assignment read = new ReadQuest_Assignment(ForgeProps.getFile(QUEST.QUESTS), null);
|
||||
|
||||
javax.swing.SwingUtilities.invokeAndWait(read);
|
||||
// read.run();
|
||||
|
||||
Quest_Assignment qa[] = new Quest_Assignment[read.allQuests.size()];
|
||||
read.allQuests.toArray(qa);
|
||||
for (int i = 0; i < qa.length; i++) {
|
||||
System.out.println(qa[i].getId());
|
||||
System.out.println(qa[i].getName());
|
||||
System.out.println(qa[i].getDesc());
|
||||
System.out.println(qa[i].getDifficulty());
|
||||
System.out.println(qa[i].isRepeatable());
|
||||
System.out.println(qa[i].getRequiredNumberWins());
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
ErrorViewer.showError(ex);
|
||||
System.out.println("Error reading file " + ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user