mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
Tests: improved verify test for token's constructor;
This commit is contained in:
parent
e3b75a445f
commit
48049dbfc9
1 changed files with 1 additions and 3 deletions
|
@ -680,9 +680,8 @@ public class VerifyCardDataTest {
|
||||||
for (Class<? extends TokenImpl> tokenClass : publicTokens) {
|
for (Class<? extends TokenImpl> tokenClass : publicTokens) {
|
||||||
String className = extractShortClass(tokenClass);
|
String className = extractShortClass(tokenClass);
|
||||||
Token token = (Token) createNewObject(tokenClass);
|
Token token = (Token) createNewObject(tokenClass);
|
||||||
//Assert.assertNotNull("Can't create token by default constructor", token);
|
|
||||||
if (token == null) {
|
if (token == null) {
|
||||||
Assert.fail("Can't create token by default constructor: " + className);
|
errorsList.add("error, token must have default constructor with zero params: " + tokenClass.getName());
|
||||||
} else if (tokDataNamesIndex.getOrDefault(token.getName(), "").isEmpty()) {
|
} else if (tokDataNamesIndex.getOrDefault(token.getName(), "").isEmpty()) {
|
||||||
errorsList.add("error, can't find data in card-pictures-tok.txt for token: " + tokenClass.getName() + " -> " + token.getName());
|
errorsList.add("error, can't find data in card-pictures-tok.txt for token: " + tokenClass.getName() + " -> " + token.getName());
|
||||||
}
|
}
|
||||||
|
@ -963,7 +962,6 @@ public class VerifyCardDataTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore
|
|
||||||
public void showCardInfo() throws Exception {
|
public void showCardInfo() throws Exception {
|
||||||
// debug only: show direct card info (takes it from class file, not from db repository)
|
// debug only: show direct card info (takes it from class file, not from db repository)
|
||||||
String cardName = "Essence Capture";
|
String cardName = "Essence Capture";
|
||||||
|
|
Loading…
Reference in a new issue