mirror of
https://github.com/correl/mage.git
synced 2024-11-29 03:00:12 +00:00
Fixed verify tests config
This commit is contained in:
parent
f1e9c49195
commit
c3b391b42f
3 changed files with 12 additions and 9 deletions
|
@ -13,8 +13,6 @@
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>Mage Tests</name>
|
<name>Mage Tests</name>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>${project.groupId}</groupId>
|
<groupId>${project.groupId}</groupId>
|
||||||
|
|
|
@ -24,6 +24,16 @@
|
||||||
<artifactId>mage-sets</artifactId>
|
<artifactId>mage-sets</artifactId>
|
||||||
<version>${mage-version}</version>
|
<version>${mage-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>${project.groupId}</groupId>
|
||||||
|
<artifactId>mage-server</artifactId>
|
||||||
|
<version>${mage-version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>${project.groupId}</groupId>
|
||||||
|
<artifactId>mage-client</artifactId>
|
||||||
|
<version>${mage-version}</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
|
@ -46,12 +56,6 @@
|
||||||
<artifactId>reflections</artifactId>
|
<artifactId>reflections</artifactId>
|
||||||
<version>0.9.12</version>
|
<version>0.9.12</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.mage</groupId>
|
|
||||||
<artifactId>mage-client</artifactId>
|
|
||||||
<version>1.4.47</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class VerifyCardDataTest {
|
||||||
private static final Logger logger = Logger.getLogger(VerifyCardDataTest.class);
|
private static final Logger logger = Logger.getLogger(VerifyCardDataTest.class);
|
||||||
|
|
||||||
private static final String FULL_ABILITIES_CHECK_SET_CODE = "CMR"; // check all abilities and output cards with wrong abilities texts;
|
private static final String FULL_ABILITIES_CHECK_SET_CODE = "CMR"; // check all abilities and output cards with wrong abilities texts;
|
||||||
private static final boolean AUTO_FIX_SAMPLE_DECKS = false; // debug only: fix sample decks if it contains errors like wrong card numbers
|
private static final boolean AUTO_FIX_SAMPLE_DECKS = false; // debug only: auto-fix sample decks by test_checkSampleDecks test run
|
||||||
|
|
||||||
private static final HashMap<String, Set<String>> skipCheckLists = new HashMap<>();
|
private static final HashMap<String, Set<String>> skipCheckLists = new HashMap<>();
|
||||||
private static final Set<String> subtypesToIgnore = new HashSet<>();
|
private static final Set<String> subtypesToIgnore = new HashSet<>();
|
||||||
|
@ -1728,6 +1728,7 @@ public class VerifyCardDataTest {
|
||||||
Set<Class<? extends DraftCube>> cubesList = reflections.getSubTypesOf(DraftCube.class);
|
Set<Class<? extends DraftCube>> cubesList = reflections.getSubTypesOf(DraftCube.class);
|
||||||
Assert.assertFalse("Can't find any cubes", cubesList.isEmpty());
|
Assert.assertFalse("Can't find any cubes", cubesList.isEmpty());
|
||||||
|
|
||||||
|
CardScanner.scan();
|
||||||
Collection<String> errorsList = new ArrayList<>();
|
Collection<String> errorsList = new ArrayList<>();
|
||||||
for (Class<? extends DraftCube> cubeClass : cubesList) {
|
for (Class<? extends DraftCube> cubeClass : cubesList) {
|
||||||
// need drafts with fixed cards list (constructor with zero params)
|
// need drafts with fixed cards list (constructor with zero params)
|
||||||
|
|
Loading…
Reference in a new issue