Fix DeckHintsTest.

This commit is contained in:
elcnesh
2014-09-15 22:28:35 +00:00
parent 42b99b0b5e
commit 58c727ed66

View File

@@ -6,6 +6,7 @@ import java.util.List;
import junit.framework.Assert; import junit.framework.Assert;
import org.apache.commons.lang3.StringUtils;
import org.testng.annotations.BeforeTest; import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test; import org.testng.annotations.Test;
@@ -15,6 +16,7 @@ import forge.card.CardRarity;
import forge.card.CardRules; import forge.card.CardRules;
import forge.card.DeckHints; import forge.card.DeckHints;
import forge.properties.ForgeConstants; import forge.properties.ForgeConstants;
import forge.util.BuildInfo;
import forge.util.FileUtil; import forge.util.FileUtil;
/** /**
@@ -26,6 +28,10 @@ public class DeckHintsTest {
@BeforeTest @BeforeTest
void setupTest() { void setupTest() {
// Init ForgeConstants
final String assetsDir = StringUtils.containsIgnoreCase(BuildInfo.getVersionString(), "svn") ? "../forge-gui/" : "";
ForgeConstants.init(assetsDir);
GuiBase.setInterface(new GuiDesktop()); GuiBase.setInterface(new GuiDesktop());
} }