Package de.hybris.platform.task.impl
Class TriggerTaskRunnerRetriesHandlingTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.task.impl.TriggerTaskRunnerRetriesHandlingTest
-
- All Implemented Interfaces:
JaloSessionHolder
public class TriggerTaskRunnerRetriesHandlingTest extends ServicelayerBaseTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classTriggerTaskRunnerRetriesHandlingTest.TestTaskService
-
Field Summary
Fields Modifier and Type Field Description protected FlexibleSearchServiceflexibleSearchServiceprotected com.codahale.metrics.MetricRegistrymetricRegistryprotected ModelServicemodelServiceprotected org.springframework.retry.support.RetryTemplatetaskEngineRetryTemplateprotected TaskServicetaskServiceprotected TypeServicetypeService-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description TriggerTaskRunnerRetriesHandlingTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidshouldRetryTaskAndNotRemoveThem()voidshouldRetryTasksWithDefaultMaxAttempts()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
-
-
-
-
Field Detail
-
modelService
protected ModelService modelService
-
flexibleSearchService
protected FlexibleSearchService flexibleSearchService
-
taskService
protected TaskService taskService
-
typeService
protected TypeService typeService
-
metricRegistry
protected com.codahale.metrics.MetricRegistry metricRegistry
-
taskEngineRetryTemplate
protected org.springframework.retry.support.RetryTemplate taskEngineRetryTemplate
-
-
Method Detail
-
setUp
public void setUp()
-
tearDown
public void tearDown()
-
shouldRetryTaskAndNotRemoveThem
public void shouldRetryTaskAndNotRemoveThem() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldRetryTasksWithDefaultMaxAttempts
public void shouldRetryTasksWithDefaultMaxAttempts() throws java.lang.Exception- Throws:
java.lang.Exception
-
-