Class PetalDanceTests
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<TestResult>
Petal Dance/Outrage/Raging Fury/Thrash will end if the user is unable to attack due to falling asleep.static CompletableFuture<TestResult>
Petal Dance/Outrage/Raging Fury/Thrash will end if the user flinches before executing their attack.static CompletableFuture<TestResult>
Petal Dance/Outrage/Raging Fury/Thrash will end if the user hits a protection move.static CompletableFuture<TestResult>
Petal Dance/Outrage/Raging Fury/Thrash will end if the user misses its target.static CompletableFuture<TestResult>
Petal Dance/Outrage/Raging Fury/Thrash will end if the user hits a Pokémon immune to it.static CompletableFuture<TestResult>
Petal Dance/Outrage/Raging Fury/Thrash will confuse the user after the final turn.static CompletableFuture<TestResult>
Petal Dance/Outrage/Raging Fury/Thrash will confuse the user if it is disrupted on the same turn it would have ended.static CompletableFuture<TestResult>
Petal Dance/Outrage/Raging Fury/Thrash will confuse the user if it is disrupted on the same turn it would have ended.static CompletableFuture<TestResult>
testShouldNotConfuseTheUserIfDisruptedOnTheSecondTurnWhichIsNotTheFinalTurn
(BattleTestHelper helper) Petal Dance/Outrage/Raging Fury/Thrash will not confuse the user if it is supposed to last three turns and is disrupted on the second turn.
-
Constructor Details
-
PetalDanceTests
public PetalDanceTests()
-
-
Method Details
-
testShouldConfuseTheUserAfterCompletingTheFinalTurn
public static CompletableFuture<TestResult> testShouldConfuseTheUserAfterCompletingTheFinalTurn(BattleTestHelper helper) Petal Dance/Outrage/Raging Fury/Thrash will confuse the user after the final turn.In this test, a Nidoking that knows Thrash faces off against a Golem that knows Splash. - Turn 1 The Nidoking attacks with Thrash. Golem uses Splash. Turn 2 Before this turn starts we force Thrash to only last 2 turns. The Nidoking attacks with Thrash. Golem uses Splash. Nidoking is finished with Thrash so it becomes confused. - We verify that the Nidoking has a Multi Turn status after turn one. We verify that the Nidoking is confused after turn two.
-
testShouldBeDisruptedDueToMissing
public static CompletableFuture<TestResult> testShouldBeDisruptedDueToMissing(BattleTestHelper helper) Petal Dance/Outrage/Raging Fury/Thrash will end if the user misses its target.In this test, a Nidoking that knows Thrash faces off against a Golem that knows Dig. - Turn 1 The Nidoking attacks with Thrash. Golem uses Dig. Golem is now underground and unable to be hit by Thrash. Turn 2 Before this turn starts we force Thrash to last 3 turns. The Nidoking attacks with Thrash. Nidoking misses. Golem finishes the second phase of Dig. Nidoking no longer has a Multi Turn status and is finished using Thrash. - We verify that the Golem is underground after using Dig after turn one. We verify that the Nidoking has a Multi Turn status after turn one. We verify that the Nidoking no longer has a Multi Turn status after turn two.
-
testShouldBeDisruptedDueToFallingAsleep
public static CompletableFuture<TestResult> testShouldBeDisruptedDueToFallingAsleep(BattleTestHelper helper) Petal Dance/Outrage/Raging Fury/Thrash will end if the user is unable to attack due to falling asleep.In this test, a Dragonite that knows Outrage faces off against a Breloom that knows Spore (and holds a Focus Sash just in case). - Turn 1 The Dragonite attacks with Outrage. Breloom uses Spore. The Dragonite is now asleep. Turn 2 Before this turn starts we force Outrage to last 3 turns. The Dragonite fails to attack with Outrage due to being asleep. The Breloom uses Spore and it has no affect. Dragonite no longer has a Multi Turn status and is finished using Outrage. - We verify that the Dragonite has a Multi Turn status after turn one. We verify that the Dragonite is asleep after turn two. We verify that the Dragonite no longer has a Multi Turn status after turn two.
-
testShouldBeDisruptedDueToHittingAProtectionMove
public static CompletableFuture<TestResult> testShouldBeDisruptedDueToHittingAProtectionMove(BattleTestHelper helper) Petal Dance/Outrage/Raging Fury/Thrash will end if the user hits a protection move.In this test, a Nidoking that knows Thrash faces off against a Golem that knows Splash and Protect. - Turn 1 The Nidoking attacks with Thrash. Golem uses Splash. Turn 2 Before this turn starts we force Thrash to last 3 turns. Golem goes first, using Protect. The Nidoking attacks with Thrash. Nidoking hits the Protect. Nidoking no longer has a Multi Turn status and is finished using Thrash. - We verify that the Nidkoing has a Multi Turn status after turn one. We verify that the Nidoking is given a Multi Turn status after turn two. We verify that the Nidoking no longer has a Multi Turn status after turn two.
-
testShouldBeDisruptedDueToFlinching
public static CompletableFuture<TestResult> testShouldBeDisruptedDueToFlinching(BattleTestHelper helper) Petal Dance/Outrage/Raging Fury/Thrash will end if the user flinches before executing their attack.In this test, a Cherubi that knows Petal Dance faces off against an Ambipom that knows Splash and Fling and holds a King's Rock. Ambipom is faster than Cherubi - Turn 1 The Ambipom uses Splash. The Cherubi uses Petal Dance. Turn 2 Before this turn starts we force Petal Dance to last 3 turns. The Ambipom attacks with Fling, throwing its King's Rock. The Cherubi flinches from the King' Rock. The Cherubi no longer has a Multi Turn status and is finished using Petal Dance. - We verify that the Cherubi has a Multi Turn status after turn one. We verify that the Cherubi no longer has a Multi Turn status after turn two.
-
testShouldConfuseTheUserIfDisruptedOnTheSecondTurnWhichIsAlsoTheFinalTurn
public static CompletableFuture<TestResult> testShouldConfuseTheUserIfDisruptedOnTheSecondTurnWhichIsAlsoTheFinalTurn(BattleTestHelper helper) Petal Dance/Outrage/Raging Fury/Thrash will confuse the user if it is disrupted on the same turn it would have ended.In this test, a Cherubi that knows Petal Dance faces off against an Ambipom holding a King's Rock that knows Splash and Fling. - Turn 1 Ambipom uses Splash. The Cherubi attacks with Petal Dance. Turn 2 Before this turn starts we force Petal Dance to last 2 turns. Ambipom uses Fling. The King's Rock is thrown and flinches the Cherubi. With Cherubi flinching, Petal Dance is disrupted. Cherubi becomes confused due to being disrupted on the final turn of its Petal Dance. - We verify that the Cherubi has a Multi Turn status after turn one. We verify that the Cherubi no longer has a Multi Turn status after turn two. We verify that the Cherubi is confused after turn two.
-
testShouldNotConfuseTheUserIfDisruptedOnTheSecondTurnWhichIsNotTheFinalTurn
public static CompletableFuture<TestResult> testShouldNotConfuseTheUserIfDisruptedOnTheSecondTurnWhichIsNotTheFinalTurn(BattleTestHelper helper) Petal Dance/Outrage/Raging Fury/Thrash will not confuse the user if it is supposed to last three turns and is disrupted on the second turn.In this test, a Cherubi that knows Petal Dance faces off against an Ambipom holding a King's Rock that knows Splash and Fling. - Turn 1 Ambipom uses Splash. The Cherubi attacks with Petal Dance. Turn 2 Before this turn starts we force Petal Dance to last 3 turns. Ambipom uses Fling. The King's Rock is thrown and flinches the Cherubi. With Cherubi flinching, Petal Dance is disrupted. The Cherubi does not become confused. - We verify that the Cherubi has a Multi Turn status after turn one. We verify that the Cherubi no longer has a Multi Turn status after turn two. We verify that the Cherubi is not confused after turn two.
-
testShouldConfuseTheUserIfDisruptedOnTheThirdTurnWhichIsAlsoTheFinalTurn
public static CompletableFuture<TestResult> testShouldConfuseTheUserIfDisruptedOnTheThirdTurnWhichIsAlsoTheFinalTurn(BattleTestHelper helper) Petal Dance/Outrage/Raging Fury/Thrash will confuse the user if it is disrupted on the same turn it would have ended.In this test, a Cherubi that knows Petal Dance faces off against an Ambipom holding a King's Rock that knows Splash and Fling. - Turn 1 Ambipom uses Splash. The Cherubi attacks with Petal Dance. Turn 2 Before this turn starts we force Petal Dance to last 3 turns. Ambipom uses Splash. The Cherubi attacks with Petal Dance. Turn 3 Ambipom uses Fling. The King's Rock is thrown and flinches the Cherubi. With Cherubi flinching, Petal Dance is disrupted. Cherubi becomes confused due to being disrupted on the final turn of its Petal Dance. - We verify that the Cherubi has a Multi Turn status after turn one. We verify that the Cherubi no longer has a Multi Turn status after turn three. We verify that the Cherubi is confused after turn three.
-
testShouldBeDisruptedDueToTheTargetBeingImmuneToTheAttack
public static CompletableFuture<TestResult> testShouldBeDisruptedDueToTheTargetBeingImmuneToTheAttack(BattleTestHelper helper) Petal Dance/Outrage/Raging Fury/Thrash will end if the user hits a Pokémon immune to it.In this test, a Dratini that knows Outrage faces off against a Metapod that knows Harden and a Snubbull that knows Splash. - Turn 1 The Dratini attacks the Metapod with Outrage. The Dratini is given a MultiTurn status. Metapod uses Harden. Turn 2 Before this turn starts we force Outrage to last 3 turns. Metapod is switched out for Snubbull. Dratini uses Outrage on Snubbull. The move fails, so Dratini loses its multi turn status. - We verify that the Dratini has a Multi Turn status after turn one. We verify that the Dratini does not have a Multi Turn status after turn two.
-