mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
Test fixes and improvements (#9733)
* Test fixes and improvements (for debugging) * Remove set log level * Remove info log from CardRepository Co-authored-by: Hugh Kaznowski <raat_streetcam@simplelogin.com>
This commit is contained in:
parent
63c1325f37
commit
dc3d867584
4 changed files with 5 additions and 5 deletions
|
@ -28,7 +28,7 @@ public final class Bushwhack extends CardImpl {
|
|||
));
|
||||
|
||||
// * Target creature you control fights target creature you don't control.
|
||||
this.getSpellAbility().addMode(new Mode(new FightTargetsEffect())
|
||||
this.getSpellAbility().addMode(new Mode(new FightTargetsEffect(true))
|
||||
.addTarget(new TargetControlledCreaturePermanent())
|
||||
.addTarget(new TargetPermanent(StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL)));
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.t;
|
|||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DealsDamageToAPlayerAllTriggeredAbility;
|
||||
import mage.abilities.costs.mana.GenericManaCost;;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.abilities.keyword.WardAbility;
|
||||
|
|
|
@ -22,13 +22,13 @@ public class TxtDeckImporterTest {
|
|||
|
||||
for (String c : cards) {
|
||||
card = CardRepository.instance.findPreferredCoreExpansionCard(c);
|
||||
assert card != null;
|
||||
Assert.assertNotNull(String.format("Card %s was null", c), card);
|
||||
deck.getCards().add(new DeckCardInfo(card.getName(), card.getCardNumber(), card.getSetCode()));
|
||||
}
|
||||
|
||||
for (String s : sideboard) {
|
||||
card = CardRepository.instance.findPreferredCoreExpansionCard(s);
|
||||
assert card != null;
|
||||
Assert.assertNotNull(String.format("Card %s was null", s), card);
|
||||
deck.getSideboard().add(new DeckCardInfo(card.getName(), card.getCardNumber(), card.getSetCode()));
|
||||
}
|
||||
|
||||
|
|
|
@ -275,7 +275,7 @@ public class VerifyCardDataTest {
|
|||
|
||||
printMessages(outputMessages);
|
||||
if (failed > 0) {
|
||||
Assert.fail("found " + failed + " errors in cards verify (see errors list above)");
|
||||
Assert.fail(String.format("found %d errors in %d cards verify (see errors list above)", failed, CardScanner.getAllCards().size()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue