make a verify variable static

This commit is contained in:
theelk801 2025-07-19 08:34:14 -04:00
parent bd07c24bee
commit ffca1032ff

View file

@ -924,6 +924,27 @@ public class VerifyCardDataTest {
} }
} }
private static final Set<String> ignoreBoosterSets = new HashSet<>();
static {
// temporary, TODO: remove after set release and mtgjson get info
ignoreBoosterSets.add("Edge of Eternities");
// jumpstart, TODO: must implement from JumpstartPoolGenerator, see #13264
ignoreBoosterSets.add("Jumpstart");
ignoreBoosterSets.add("Jumpstart 2022");
ignoreBoosterSets.add("Foundations Jumpstart");
ignoreBoosterSets.add("Ravnica: Clue Edition");
// joke or un-sets, low implemented cards
ignoreBoosterSets.add("Unglued");
ignoreBoosterSets.add("Unhinged");
ignoreBoosterSets.add("Unstable");
ignoreBoosterSets.add("Unfinity");
// other
ignoreBoosterSets.add("Secret Lair Drop"); // cards shop
ignoreBoosterSets.add("Zendikar Rising Expeditions"); // box toppers
ignoreBoosterSets.add("March of the Machine: The Aftermath"); // epilogue boosters aren't for draft
}
@Test @Test
public void test_checkMissingSetData() { public void test_checkMissingSetData() {
Collection<String> errorsList = new ArrayList<>(); Collection<String> errorsList = new ArrayList<>();
@ -1074,24 +1095,6 @@ public class VerifyCardDataTest {
} }
// CHECK: miss booster settings // CHECK: miss booster settings
Set<String> ignoreBoosterSets = new HashSet<>();
// temporary, TODO: remove after set release and mtgjson get info
ignoreBoosterSets.add("Edge of Eternities");
// jumpstart, TODO: must implement from JumpstartPoolGenerator, see #13264
ignoreBoosterSets.add("Jumpstart");
ignoreBoosterSets.add("Jumpstart 2022");
ignoreBoosterSets.add("Foundations Jumpstart");
ignoreBoosterSets.add("Ravnica: Clue Edition");
// joke or un-sets, low implemented cards
ignoreBoosterSets.add("Unglued");
ignoreBoosterSets.add("Unhinged");
ignoreBoosterSets.add("Unstable");
ignoreBoosterSets.add("Unfinity");
// other
ignoreBoosterSets.add("Secret Lair Drop"); // cards shop
ignoreBoosterSets.add("Zendikar Rising Expeditions"); // box toppers
ignoreBoosterSets.add("March of the Machine: The Aftermath"); // epilogue boosters aren't for draft
// make sure mtgjson has booster data // make sure mtgjson has booster data
boolean hasBoostersInfo = MtgJsonService.sets().values().stream().anyMatch(s -> s.booster != null && !s.booster.isEmpty()); boolean hasBoostersInfo = MtgJsonService.sets().values().stream().anyMatch(s -> s.booster != null && !s.booster.isEmpty());
for (ExpansionSet set : sets) { for (ExpansionSet set : sets) {