Class TariffSubscriptionTests


  • @SpringJUnitConfig(locations="classpath:test-config.xml")
    @DirtiesContext
    @TestExecutionListeners(listeners={org.springframework.test.context.support.DependencyInjectionTestExecutionListener.class,org.springframework.test.context.support.DirtiesContextTestExecutionListener.class})
    public class TariffSubscriptionTests
    extends Object
    Test cases for TariffSubscription. Uses a Spring application context to access autowired components. Need to mock: Accounting, TariffMarket
    Author:
    John Collins
    • Constructor Detail

      • TariffSubscriptionTests

        public TariffSubscriptionTests()
    • Method Detail

      • testTariffSubscription

        @Test
        public void testTariffSubscription()
      • testGetTotalUsage

        @Test
        public void testGetTotalUsage()
      • testSubscribe

        @Test
        public void testSubscribe()
      • testUnsubscribe

        @Test
        public void testUnsubscribe()
      • testHandleRevokedTariffDefault

        @Test
        public void testHandleRevokedTariffDefault()
      • testHandleRevokedTariffNegSignup

        @Test
        public void testHandleRevokedTariffNegSignup()
      • testHandleRevokedTariffDefaultPT

        @Test
        public void testHandleRevokedTariffDefaultPT()
      • testUsePower

        @Test
        public void testUsePower()
      • testUsePowerPeriodic

        @Test
        public void testUsePowerPeriodic()
      • testGetExpiredCustomerCount

        @Test
        public void testGetExpiredCustomerCount()
      • testGetExpiredCustomerCountNoMin

        @Test
        public void testGetExpiredCustomerCountNoMin()
      • regulationCapacity

        @Test
        public void regulationCapacity()
      • testBalancingControlUp

        @Test
        public void testBalancingControlUp()
      • testBalancingControlUpRR

        @Test
        public void testBalancingControlUpRR()
      • testBalancingControlDown

        @Test
        public void testBalancingControlDown()
      • testBalancingControlRegRate

        @Test
        public void testBalancingControlRegRate()
      • testEconomicControl

        @Test
        public void testEconomicControl()
      • testCurtailmentUnsubscribe1

        @Test
        public void testCurtailmentUnsubscribe1()
      • testCurtailmentUnsubscribe2

        @Test
        public void testCurtailmentUnsubscribe2()
      • testCurtailmentUnsubscribe3

        @Test
        public void testCurtailmentUnsubscribe3()