mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +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) {
|
||||
String className = extractShortClass(tokenClass);
|
||||
Token token = (Token) createNewObject(tokenClass);
|
||||
//Assert.assertNotNull("Can't create token by default constructor", token);
|
||||
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()) {
|
||||
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
|
||||
@Ignore
|
||||
public void showCardInfo() throws Exception {
|
||||
// debug only: show direct card info (takes it from class file, not from db repository)
|
||||
String cardName = "Essence Capture";
|
||||
|
|
Loading…
Reference in a new issue