mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Tests: added verify test to check wrong expansionSetCode usage in cards (see da6acafef2
);
This commit is contained in:
parent
1373675073
commit
f307bffcda
1 changed files with 3 additions and 0 deletions
|
@ -1717,6 +1717,9 @@ public class VerifyCardDataTest {
|
|||
if (card == null) {
|
||||
errorsList.add("Error: broken constructor " + setInfo.getCardClass());
|
||||
}
|
||||
if (!card.getExpansionSetCode().equals(set.getCode())) {
|
||||
errorsList.add("Error: card constructor have custom expansionSetCode, must be removed " + setInfo.getCardClass());
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
// CardImpl.createCard don't throw exceptions (only error logs), so that logs are useless here
|
||||
logger.error("Error: can't create card " + setInfo.getName() + ": " + e.getMessage(), e);
|
||||
|
|
Loading…
Reference in a new issue