tests: improved test_showCardInfo, now it can show mtgjson ref data without set usage (VSC script support)

This commit is contained in:
Oleg Agafonov 2024-06-03 10:20:59 +04:00
parent fda9d8fc1d
commit 0cf0af3cbb
2 changed files with 18 additions and 1 deletions

View file

@ -2270,6 +2270,9 @@ public class VerifyCardDataTest {
// ref card
System.out.println();
MtgJsonCard ref = MtgJsonService.card(card.getName());
if (ref == null) {
ref = MtgJsonService.cardByClassName(foundClassName);
}
if (ref != null) {
System.out.println("ref: " + ref.getNameAsFace() + " " + ref.manaCost);
System.out.println(ref.text);