Class StatisticsPublisherTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.masterserver.impl.StatisticsPublisherTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class StatisticsPublisherTest extends ServicelayerBaseTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatisticsPublisherTest.TestStatisticsPublisher
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description StatisticsPublisherTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidshouldCreateBackOffStrategyWithValuesFromProperties()voidshouldNotStartWorkerWhenPropertyIsDisabled()voidshouldNotStartWorkerWhenPropertyIsInvalid()voidshouldStartOnlyOneWorkerWhenCalledMultipleTimes()voidshouldStartOnlyOneWorkerWhenCalledMultipleTimesConcurrently()voidshouldStartWorkerThreadIfPropertyIsTrue()voidshouldStopWorkerOnDestroy()voidshouldWorkForStartingAndStoppingAndStarting()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
-
shouldWorkForStartingAndStoppingAndStarting
public void shouldWorkForStartingAndStoppingAndStarting()
-
shouldNotStartWorkerWhenPropertyIsDisabled
public void shouldNotStartWorkerWhenPropertyIsDisabled() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
shouldNotStartWorkerWhenPropertyIsInvalid
public void shouldNotStartWorkerWhenPropertyIsInvalid()
-
shouldStartWorkerThreadIfPropertyIsTrue
public void shouldStartWorkerThreadIfPropertyIsTrue()
-
shouldStopWorkerOnDestroy
public void shouldStopWorkerOnDestroy() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldStartOnlyOneWorkerWhenCalledMultipleTimes
public void shouldStartOnlyOneWorkerWhenCalledMultipleTimes() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
shouldStartOnlyOneWorkerWhenCalledMultipleTimesConcurrently
public void shouldStartOnlyOneWorkerWhenCalledMultipleTimesConcurrently()
-
shouldCreateBackOffStrategyWithValuesFromProperties
public void shouldCreateBackOffStrategyWithValuesFromProperties()
-
-