Class ControllerIntegrationTest

    • Constructor Detail

      • ControllerIntegrationTest

        public ControllerIntegrationTest()
    • Method Detail

      • setUp

        public void setUp()
      • shouldThrowIllegalStateExceptionWhenHandlerDoesntAssignCodeToNewProcess

        public void shouldThrowIllegalStateExceptionWhenHandlerDoesntAssignCodeToNewProcess()
      • shouldCreateProcessInCreatedState

        public void shouldCreateProcessInCreatedState()
      • shouldThrowIllegalStateExceptionWhenHandlerDoesntAssignIdToInitialBatch

        public void shouldThrowIllegalStateExceptionWhenHandlerDoesntAssignIdToInitialBatch()
      • shouldThrowIllegalStateExceptionWhenHandlerDoesntSpecifyRemainingWorkLoadForInitialBatch

        public void shouldThrowIllegalStateExceptionWhenHandlerDoesntSpecifyRemainingWorkLoadForInitialBatch()
      • shouldCreateInitialBatchProvidedByHandler

        public void shouldCreateInitialBatchProvidedByHandler()
      • shouldPersistAdditionalModelsProvidedByHandlerDuringCreation

        public void shouldPersistAdditionalModelsProvidedByHandlerDuringCreation()
      • shouldBeAbleToPersist_10_000_OfBatches

        public void shouldBeAbleToPersist_10_000_OfBatches()
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • shouldScheduleInitializationTaskWhenStartingProcess

        public void shouldScheduleInitializationTaskWhenStartingProcess()
      • shouldInitializeProcessUsingHandler

        public void shouldInitializeProcessUsingHandler()
                                                 throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldSucceedProcessWhenThereAreNoBatchesDuringInitialization

        public void shouldSucceedProcessWhenThereAreNoBatchesDuringInitialization()
                                                                           throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldThrowIllegalStateExceptionWhenHandlerDoesntAssignIdToInputBatch

        public void shouldThrowIllegalStateExceptionWhenHandlerDoesntAssignIdToInputBatch()
      • shouldThrowIllegalStateExceptionWhenHandlerDoesntSpecifyRemainingWorkLoadForInputBatch

        public void shouldThrowIllegalStateExceptionWhenHandlerDoesntSpecifyRemainingWorkLoadForInputBatch()
      • shouldTransitAndCreateInputBatchesDuringInitialization

        public void shouldTransitAndCreateInputBatchesDuringInitialization()
                                                                    throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldScheduleWorkerTaskAndWithWaitTaskDuringScheduling

        public void shouldScheduleWorkerTaskAndWithWaitTaskDuringScheduling()
      • shouldSucceedProcessIfHandlerReportsSuccees

        public void shouldSucceedProcessIfHandlerReportsSuccees()
      • shouldFailProcessIfHandlerReportsFailure

        public void shouldFailProcessIfHandlerReportsFailure()
      • shouldFailWhenHandlerDoesntChangeExecutionId

        public void shouldFailWhenHandlerDoesntChangeExecutionId()
      • shouldSucceedProcessIfHandlerReportsNoInputBatches

        public void shouldSucceedProcessIfHandlerReportsNoInputBatches()
      • shouldTransitToScheduleExecutionWhenThereIsAnyInputBatchReturnedByHandler

        public void shouldTransitToScheduleExecutionWhenThereIsAnyInputBatchReturnedByHandler()
      • shouldStopProcessImmediatelyWhenItsInCreatedState

        public void shouldStopProcessImmediatelyWhenItsInCreatedState()
      • shouldMarkProcessToBeStoppedWhenItsRunning

        public void shouldMarkProcessToBeStoppedWhenItsRunning()
      • shoulNotdMarkProcessToBeStoppedWhenItsFinished

        public void shoulNotdMarkProcessToBeStoppedWhenItsFinished()
      • shoulStopProcessWhenItsRunning

        public void shoulStopProcessWhenItsRunning()
      • shouldNotWaitForProcessIfItHasAlreadyFinished

        public void shouldNotWaitForProcessIfItHasAlreadyFinished()
                                                           throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldWaitForProcessWhichIsRunning

        public void shouldWaitForProcessWhichIsRunning()
                                                throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldWaitTillProcessIsFinished

        public void shouldWaitTillProcessIsFinished()
                                             throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException