Tests: fixed tests with wrong stop command;

This commit is contained in:
Oleg Agafonov 2019-01-27 23:18:18 +04:00
parent 42e8ca2843
commit c4877902c6
3 changed files with 30 additions and 32 deletions

View file

@ -13,14 +13,14 @@ public class AuratouchedMageTest extends CardTestPlayerBase {
@Test
public void testSearch() {
addCard(Zone.BATTLEFIELD, playerA, "Plains", 10);
addCard(Zone.HAND, playerA, "Auratouched Mage");
castSpell(0, PhaseStep.PRECOMBAT_MAIN, playerA, "Auratouched Mage");
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Auratouched Mage");
addCard(Zone.LIBRARY, playerA, "White Ward", 1);
setChoice(playerA, "White ward");
setStopAt(0, PhaseStep.PRECOMBAT_MAIN);
execute();
}
addTarget(playerA, "White Ward");
setStopAt(1, PhaseStep.BEGIN_COMBAT);
execute();
assertAllCommandsUsed();
}
}

View file

@ -7,7 +7,6 @@ import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* @author escplan9 (Derek Monturo - dmontur1 at gmail dot com)
*/
@ -63,6 +62,7 @@ public class ReflectorMageTest extends CardTestPlayerBase {
addTarget(playerA, "Bronze Sable");
castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerB, "Bronze Sable"); // should not be allowed
setStopAt(2, PhaseStep.END_TURN);
execute();
assertPermanentCount(playerB, "Bronze Sable", 0);

View file

@ -7,18 +7,16 @@ import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* @author LevelX2
*/
public class NewCreaturesAreRemovedTest extends CardTestPlayerBase {
/**
* I was playing with a Tamiyo's Journal in the battlefield.
*
* <p>
* During my turn I rollbacked. The clue generated by Tamiyo's Journal
* stayed on battlefield and when my turn started again, it re-investigated
* for another one.
*
*/
@Test
public void testTamiyosJournal() {
@ -93,9 +91,9 @@ public class NewCreaturesAreRemovedTest extends CardTestPlayerBase {
playLand(7, PhaseStep.PRECOMBAT_MAIN, playerA, "Port Town");
attack(7, playerA, "Silvercoat Lion");
rollbackTurns(7, PhaseStep.END_TURN, playerA, 0);
rollbackTurns(7, PhaseStep.POSTCOMBAT_MAIN, playerA, 0);
setStopAt(7, PhaseStep.POSTCOMBAT_MAIN);
setStopAt(7, PhaseStep.END_TURN);
execute();
assertPermanentCount(playerA, "Port Town", 1);