couple of sonar fixes

This commit is contained in:
Ingmar Goudt 2019-01-17 12:03:14 +01:00
parent 63fc53e0f0
commit 7c2f55eda0
28 changed files with 53 additions and 134 deletions

View file

@ -196,7 +196,7 @@ public class CursesTest extends CardTestPlayerBase {
addCard(Zone.HAND, playerA, "Curse of Bloodletting");
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Curse of Bloodletting", playerB);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Curse of Thirst", playerB);
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "Curse of Thirst", playerB);
setStopAt(2, PhaseStep.DRAW);
execute();
@ -284,9 +284,9 @@ public class CursesTest extends CardTestPlayerBase {
// {2}{G/U}{G/U}: Put the top two cards of your library into your graveyard, then return a nonland card of an opponent's choice from your graveyard to your hand.
activateAbility(3, PhaseStep.PRECOMBAT_MAIN, playerA, "{2}{G/U}{G/U}: Put the top two cards");
castSpell(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Curse of Death's Hold", playerB);
castSpell(3, PhaseStep.POSTCOMBAT_MAIN, playerA, "Curse of Death's Hold", playerB);
setStopAt(3, PhaseStep.END_COMBAT);
setStopAt(3, PhaseStep.END_TURN);
execute();
assertLife(playerA, 20);

View file

@ -192,9 +192,9 @@ public class BloodMoonTest extends CardTestPlayerBase {
castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, "Pithing Needle");
setChoice(playerB, "Blood Moon");
playLand(2, PhaseStep.PRECOMBAT_MAIN, playerB, "Ghost Quarter");
playLand(2, PhaseStep.POSTCOMBAT_MAIN, playerB, "Ghost Quarter");
setStopAt(2, PhaseStep.BEGIN_COMBAT);
setStopAt(2, PhaseStep.END_TURN);
execute();
assertPermanentCount(playerA, "Blood Moon", 1);

View file

@ -59,7 +59,7 @@ public class DackFaydenTest extends CardTestPlayerBase {
castSpell(10, PhaseStep.PRECOMBAT_MAIN, playerA, "Gut Shot", "Ornithopter");
castSpell(10, PhaseStep.PRECOMBAT_MAIN, playerA, "Unsummon", "Ornithopter", "Gut Shot", StackClause.WHILE_NOT_ON_STACK);
castSpell(10, PhaseStep.PRECOMBAT_MAIN, playerB, "Ornithopter");
castSpell(10, PhaseStep.POSTCOMBAT_MAIN, playerB, "Ornithopter");
setStopAt(10, PhaseStep.END_TURN);
execute();

View file

@ -800,7 +800,7 @@ public class TestPlayer implements Player {
}
private void printCards(Set<Card> cards) {
printCards(cards.stream().collect(Collectors.toList()));
printCards(new ArrayList<>(cards));
}
private void printCards(List<Card> cards) {