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
@IntegrationTest public class StaleCronJobUnlockerTest extends ServicelayerBaseTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStaleCronJobUnlockerTest.TestStaleCronJobUnlocker
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description StaleCronJobUnlockerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidshouldBeActiveWhenPropertyIsTrue()voidshouldBeInactiveWhenPropertyIsFalse()voidshouldCalculateValidStaleNodeCutoffWhenValueIsGreaterThanZero()voidshouldCalculateValidStaleNodeCutoffWhenValueIsLesserThanZero()voidshouldCalculateValidStaleNodeCutoffWhenValueIsZero()voidshouldCalculateValidStaleNodeThreshold()voidshouldReturnValidStaleNodeThresholdInterval()voidshouldRunEvenWithExceptionsInGetAllNodes()voidshouldRunEvenWithExceptionsInGetNodesIds()voidshouldRunEvenWithExceptionsInGetStaleNodesIds()voidshouldRunEvenWithExceptionsInUnlockCronJobsForNodeIds()voidshouldRunEvenWithExceptionsInUnlockCronJobsFromLocalInstance()voidshouldRunUnlockingOfLocalInstanceCronJobs()voidshouldUseAllRegisteredNodesToUnlockCronJobs()voidshouldUseProvidedInterval()voidshouldUseStaleNodesToUnlockCronJobs()voidtearDown()-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
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
-
-