Class StaleCronJobUnlockerTest

All Implemented Interfaces:
JaloSessionHolder

@IntegrationTest public class StaleCronJobUnlockerTest extends ServicelayerBaseTest
  • Constructor Details

    • StaleCronJobUnlockerTest

      public StaleCronJobUnlockerTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • tearDown

      public void tearDown() throws Exception
      Throws:
      Exception
    • shouldUseAllRegisteredNodesToUnlockCronJobs

      public void shouldUseAllRegisteredNodesToUnlockCronJobs() throws InterruptedException
      Throws:
      InterruptedException
    • shouldUseStaleNodesToUnlockCronJobs

      public void shouldUseStaleNodesToUnlockCronJobs() throws InterruptedException
      Throws:
      InterruptedException
    • shouldRunUnlockingOfLocalInstanceCronJobs

      public void shouldRunUnlockingOfLocalInstanceCronJobs() throws InterruptedException
      Throws:
      InterruptedException
    • shouldBeActiveWhenPropertyIsTrue

      public void shouldBeActiveWhenPropertyIsTrue() throws InterruptedException
      Throws:
      InterruptedException
    • shouldBeInactiveWhenPropertyIsFalse

      public void shouldBeInactiveWhenPropertyIsFalse() throws InterruptedException
      Throws:
      InterruptedException
    • shouldUseProvidedInterval

      public void shouldUseProvidedInterval() throws InterruptedException
      Throws:
      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 InterruptedException
      Throws:
      InterruptedException
    • shouldRunEvenWithExceptionsInGetNodesIds

      public void shouldRunEvenWithExceptionsInGetNodesIds() throws InterruptedException
      Throws:
      InterruptedException
    • shouldRunEvenWithExceptionsInUnlockCronJobsForNodeIds

      public void shouldRunEvenWithExceptionsInUnlockCronJobsForNodeIds() throws InterruptedException
      Throws:
      InterruptedException
    • shouldRunEvenWithExceptionsInGetStaleNodesIds

      public void shouldRunEvenWithExceptionsInGetStaleNodesIds() throws InterruptedException
      Throws:
      InterruptedException
    • shouldRunEvenWithExceptionsInUnlockCronJobsFromLocalInstance

      public void shouldRunEvenWithExceptionsInUnlockCronJobsFromLocalInstance() throws InterruptedException
      Throws:
      InterruptedException