Class StaleCronJobUnlockerTest

    • Constructor Detail

      • StaleCronJobUnlockerTest

        public StaleCronJobUnlockerTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • tearDown

        public void tearDown()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldUseAllRegisteredNodesToUnlockCronJobs

        public void shouldUseAllRegisteredNodesToUnlockCronJobs()
                                                         throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldUseStaleNodesToUnlockCronJobs

        public void shouldUseStaleNodesToUnlockCronJobs()
                                                 throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldRunUnlockingOfLocalInstanceCronJobs

        public void shouldRunUnlockingOfLocalInstanceCronJobs()
                                                       throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldBeActiveWhenPropertyIsTrue

        public void shouldBeActiveWhenPropertyIsTrue()
                                              throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldBeInactiveWhenPropertyIsFalse

        public void shouldBeInactiveWhenPropertyIsFalse()
                                                 throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldUseProvidedInterval

        public void shouldUseProvidedInterval()
                                       throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldReturnValidStaleNodeThresholdInterval

        public void shouldReturnValidStaleNodeThresholdInterval()
      • shouldCalculateValidStaleNodeThreshold

        public void shouldCalculateValidStaleNodeThreshold()
      • shouldCalculateValidStaleNodeCutoffWhenValueIsGreaterThanZero

        public void shouldCalculateValidStaleNodeCutoffWhenValueIsGreaterThanZero()
      • shouldCalculateValidStaleNodeCutoffWhenValueIsZero

        public void shouldCalculateValidStaleNodeCutoffWhenValueIsZero()
      • shouldCalculateValidStaleNodeCutoffWhenValueIsLesserThanZero

        public void shouldCalculateValidStaleNodeCutoffWhenValueIsLesserThanZero()
      • shouldRunEvenWithExceptionsInGetAllNodes

        public void shouldRunEvenWithExceptionsInGetAllNodes()
                                                      throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldRunEvenWithExceptionsInGetNodesIds

        public void shouldRunEvenWithExceptionsInGetNodesIds()
                                                      throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldRunEvenWithExceptionsInUnlockCronJobsForNodeIds

        public void shouldRunEvenWithExceptionsInUnlockCronJobsForNodeIds()
                                                                   throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldRunEvenWithExceptionsInGetStaleNodesIds

        public void shouldRunEvenWithExceptionsInGetStaleNodesIds()
                                                           throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldRunEvenWithExceptionsInUnlockCronJobsFromLocalInstance

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