Tests: added verify test to check wrong expansionSetCode usage in cards (see da6acafef2);

This commit is contained in:
Oleg Agafonov 2021-04-02 11:36:59 +04:00
parent 1373675073
commit f307bffcda

View file

@ -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);