From 48049dbfc956f7d984709018eab5e140900081f0 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Thu, 7 May 2020 20:50:15 +0400 Subject: [PATCH] Tests: improved verify test for token's constructor; --- Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java b/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java index f6598e0993..23adfada9f 100644 --- a/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java +++ b/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java @@ -680,9 +680,8 @@ public class VerifyCardDataTest { for (Class 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";