Class TeraShiftTests

java.lang.Object
com.pixelmonmod.pixelmon.api.test.impl.ability.TeraShiftTests

public class TeraShiftTests extends Object
Tests for Tera Shift
  • Constructor Details

    • TeraShiftTests

      public TeraShiftTests()
  • Method Details

    • testTeraShift

      public static CompletableFuture<TestResult> testTeraShift(BattleTestHelper helper)
      When Terapagos enters the battle, it turns into its Terastal Form until the end of the battle.

      In this test, a Terapagos with the Tera Shift ability and the move Sleep Talk faces a Crabrawler that knows Sleep Talk.

           Turn 1
           The Terapagos changes into its Terastal form.
           The Terapagos uses Sleep Talk.
           The Crabrawler uses Sleep Talk.
           -
           After Turn 1
           We verify that the Terapagos is in its Terastal form.
       
    • testTeraShiftContinuesUponFainting

      public static CompletableFuture<TestResult> testTeraShiftContinuesUponFainting(BattleTestHelper helper)
      When it enters a battle for the first time, it changes from its Normal Form into its Terastal Form through its signature Ability Tera Shift and will never change back to Normal Form until the battle ends, even if it faints.

      In this test, a Terapagos with the Tera Shift ability and the move Sleep Talk faces a Vikavolt that knows Sleep Talk and Guillotine. The Terapagos also has a Magikarp on its team so that it can be switched in to prevent the battle from ending.

           Turn 1
           The Terapagos changes into its Terastal form.
           The Terapagos uses Sleep Talk.
           The Vikavolt uses Sleep Talk.
           Turn 2
           The Terapagos uses Sleep Talk.
           The Vikavolt uses Guillotine.
           Before Turn 3
           The Terapagos is magically revived.
           Turn 3
           The Magikarp switches out and the Terapagos switches in.
           The Vikavolt uses Sleep Talk.
           -
           After Turn 1
           We verify that the Terapagos is in its Terastal form.
           After Turn 2
           We verify that the Terapagos is fainted.
           We verify that the Terapagos is still in its Terastal form.
           After Turn 3
           We verify that the Terapagos is still in its Terastal form.
       
    • testTeraShiftRevertsOnBattleEnd

      public static CompletableFuture<TestResult> testTeraShiftRevertsOnBattleEnd(BattleTestHelper helper)
      Terapagos should exit its Terastal form upon a battle ending.

      In this test, a Terapagos with the Tera Shift ability and the move Sleep Talk faces a Vikavolt that knows Sleep Talk and Guillotine. The Terapagos has no allies on its team.

           Turn 1
           The Terapagos changes into its Terastal form.
           The Terapagos uses Sleep Talk.
           The Vikavolt uses Sleep Talk.
           Turn 1
           The Terapagos uses Sleep Talk.
           The Vikavolt uses Guillotine. The Terapagos faints.
           -
           After Turn 1
           We verify that the (PixelmonWrapper) Terapagos is in its Terastal form.
           We verify that the (Pokemon) Terapagos remains in its Normal form.
           After Turn 2
           We verify that the battle ended.
           We verify that the (Pokemon) Terapagos is fainted.
           We verify that the (Pokemon) Terapagos remains in its Normal form.
       
    • testTeraShiftPreservesHealthOnFlee

      public static CompletableFuture<TestResult> testTeraShiftPreservesHealthOnFlee(BattleTestHelper helper)
      Terapagos should retain its pre-battle HP when Tera Shift is reverted after fleeing.
    • testTeraShiftPreservesHealthOnForcedEnd

      public static CompletableFuture<TestResult> testTeraShiftPreservesHealthOnForcedEnd(BattleTestHelper helper)
      Terapagos should retain its pre-battle HP when Tera Shift is reverted after a forced battle end.