Package de.hybris.platform.cronjob
Class StaleCronJobUnlockerTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.cronjob.StaleCronJobUnlockerTest
- All Implemented Interfaces:
JaloSessionHolder
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
StaleCronJobUnlockerTest
public StaleCronJobUnlockerTest()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
shouldUseAllRegisteredNodesToUnlockCronJobs
- Throws:
InterruptedException
-
shouldUseStaleNodesToUnlockCronJobs
- Throws:
InterruptedException
-
shouldRunUnlockingOfLocalInstanceCronJobs
- Throws:
InterruptedException
-
shouldBeActiveWhenPropertyIsTrue
- Throws:
InterruptedException
-
shouldBeInactiveWhenPropertyIsFalse
- Throws:
InterruptedException
-
shouldUseProvidedInterval
- Throws:
InterruptedException
-
shouldReturnValidStaleNodeThresholdInterval
public void shouldReturnValidStaleNodeThresholdInterval() -
shouldCalculateValidStaleNodeThreshold
public void shouldCalculateValidStaleNodeThreshold() -
shouldCalculateValidStaleNodeCutoffWhenValueIsGreaterThanZero
public void shouldCalculateValidStaleNodeCutoffWhenValueIsGreaterThanZero() -
shouldCalculateValidStaleNodeCutoffWhenValueIsZero
public void shouldCalculateValidStaleNodeCutoffWhenValueIsZero() -
shouldCalculateValidStaleNodeCutoffWhenValueIsLesserThanZero
public void shouldCalculateValidStaleNodeCutoffWhenValueIsLesserThanZero() -
shouldRunEvenWithExceptionsInGetAllNodes
- Throws:
InterruptedException
-
shouldRunEvenWithExceptionsInGetNodesIds
- Throws:
InterruptedException
-
shouldRunEvenWithExceptionsInUnlockCronJobsForNodeIds
- Throws:
InterruptedException
-
shouldRunEvenWithExceptionsInGetStaleNodesIds
- Throws:
InterruptedException
-
shouldRunEvenWithExceptionsInUnlockCronJobsFromLocalInstance
public void shouldRunEvenWithExceptionsInUnlockCronJobsFromLocalInstance() throws InterruptedException- Throws:
InterruptedException
-