mirror of
https://github.com/correl/mage.git
synced 2025-04-09 17:00:09 -09: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) {
|
if (card == null) {
|
||||||
errorsList.add("Error: broken constructor " + setInfo.getCardClass());
|
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) {
|
} catch (Throwable e) {
|
||||||
// CardImpl.createCard don't throw exceptions (only error logs), so that logs are useless here
|
// 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);
|
logger.error("Error: can't create card " + setInfo.getName() + ": " + e.getMessage(), e);
|
||||||
|
|
Loading…
Add table
Reference in a new issue