* fix potential bug where the copy constructor of the continuous effect of ThrummingStone did not copy its object parameters

* unignore the thrumming stone test
This commit is contained in:
klayhamn 2015-07-28 17:38:50 +03:00
parent 005554fcfc
commit cac6a03e7f
2 changed files with 89 additions and 86 deletions

View file

@ -1,6 +1,5 @@
package org.mage.test.cards.abilities.other;
import jdk.nashorn.internal.ir.annotations.Ignore;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
@ -11,51 +10,50 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
*/
public class ThrummingStoneTest extends CardTestPlayerBase {
@Test
public void testApplyForNoneRippleCardsWhenSingleRipple() throws Exception {
@Test
public void testApplyForNoneRippleCardsWhenSingleRipple() throws Exception {
removeAllCardsFromLibrary(playerA);
removeAllCardsFromLibrary(playerA);
addCard(Zone.BATTLEFIELD, playerA, "Thrumming Stone");
addCard(Zone.BATTLEFIELD, playerA, "Swamp");
addCard(Zone.HAND, playerA, "Shadowborn Apostle");
addCard(Zone.BATTLEFIELD, playerA, "Thrumming Stone");
addCard(Zone.BATTLEFIELD, playerA, "Swamp");
addCard(Zone.HAND, playerA, "Shadowborn Apostle");
addCard(Zone.LIBRARY, playerA, "Shadowborn Apostle", 1);
addCard(Zone.LIBRARY, playerA, "Swamp", 3);
addCard(Zone.LIBRARY, playerA, "Shadowborn Apostle", 1);
addCard(Zone.LIBRARY, playerA, "Swamp", 3);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Shadowborn Apostle");
setChoice(playerA, "Yes");
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Shadowborn Apostle");
setChoice(playerA, "Yes");
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
execute();
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
execute();
assertPermanentCount(playerA, "Shadowborn Apostle", 2);
assertPermanentCount(playerA, "Shadowborn Apostle", 2);
}
}
@Test
@Ignore // FIXME: This still fails
public void testApplyForNoneRippleCardsWhenMultiRipple() throws Exception {
@Test
public void testApplyForNoneRippleCardsWhenMultiRipple() throws Exception {
removeAllCardsFromLibrary(playerA);
removeAllCardsFromLibrary(playerA);
addCard(Zone.BATTLEFIELD, playerA, "Thrumming Stone");
addCard(Zone.BATTLEFIELD, playerA, "Swamp");
addCard(Zone.HAND, playerA, "Shadowborn Apostle");
addCard(Zone.BATTLEFIELD, playerA, "Thrumming Stone");
addCard(Zone.BATTLEFIELD, playerA, "Swamp");
addCard(Zone.HAND, playerA, "Shadowborn Apostle");
addCard(Zone.LIBRARY, playerA, "Shadowborn Apostle");
addCard(Zone.LIBRARY, playerA, "Swamp", 3);
addCard(Zone.LIBRARY, playerA, "Shadowborn Apostle");
addCard(Zone.LIBRARY, playerA, "Shadowborn Apostle");
addCard(Zone.LIBRARY, playerA, "Swamp", 3);
addCard(Zone.LIBRARY, playerA, "Shadowborn Apostle");
skipInitShuffling();
skipInitShuffling();
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Shadowborn Apostle");
setChoice(playerA, "Yes");
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Shadowborn Apostle");
setChoice(playerA, "Yes");
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
execute();
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
execute();
assertPermanentCount(playerA, "Shadowborn Apostle", 3);
assertPermanentCount(playerA, "Shadowborn Apostle", 3);
}
}
}