Class TariffEvaluatorTest


  • public class TariffEvaluatorTest
    extends Object
    Test cases for TariffEvaluator.
    Author:
    John Collins
    • Constructor Detail

      • TariffEvaluatorTest

        public TariffEvaluatorTest()
    • Method Detail

      • noTariffTest

        @Test
        public void noTariffTest()
        Test for no new tariffs case.
      • testScaleFactor

        @Test
        public void testScaleFactor()
      • testSignupCostPositive

        @Test
        public void testSignupCostPositive()
      • testSignupCostNegative

        @Test
        public void testSignupCostNegative()
      • testSignupCostZero

        @Test
        public void testSignupCostZero()
      • testWithdrawCostPositive

        @Test
        public void testWithdrawCostPositive()
      • testWithdrawCostPositiveShort

        @Test
        public void testWithdrawCostPositiveShort()
      • testWithdrawCostNegative

        @Test
        public void testWithdrawCostNegative()
      • testWithdrawCostZero

        @Test
        public void testWithdrawCostZero()
      • testWithdrawCostOpen

        @Test
        public void testWithdrawCostOpen()
      • singleNewTariffConsumption

        @Test
        public void singleNewTariffConsumption()
      • singleNewTariffSmallChunk

        @Test
        public void singleNewTariffSmallChunk()
      • twoTariffSplit

        @Test
        public void twoTariffSplit()
      • withdrawCost

        @Test
        public void withdrawCost()
      • posWithdrawCost

        @Test
        public void posWithdrawCost()
      • posWithdrawPmt

        @Test
        public void posWithdrawPmt()
      • BogusWithdrawCost

        @Test
        public void BogusWithdrawCost()
      • signupBonus

        @Test
        public void signupBonus()
      • oldSignupBonus

        @Test
        public void oldSignupBonus()
      • signupCharge

        @Test
        public void signupCharge()
      • signupCharge2

        @Test
        public void signupCharge2()
      • signupCharge3

        @Test
        public void signupCharge3()
      • twoTariffInertia

        @Test
        public void twoTariffInertia()
      • minDurationTest

        @Test
        public void minDurationTest()
      • revokeToDefault

        @Test
        public void revokeToDefault()
      • revokeSuperseding

        @Test
        public void revokeSuperseding()
      • revokeToKilledSuperseding

        @Test
        public void revokeToKilledSuperseding()