Class StatisticsPublisherWorkerTest
- java.lang.Object
-
- de.hybris.platform.masterserver.impl.StatisticsPublisherWorkerTest
-
@UnitTest public class StatisticsPublisherWorkerTest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatisticsPublisherWorkerTest.TestWorker
-
Constructor Summary
Constructors Constructor Description StatisticsPublisherWorkerTest()
-
Method Summary
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
shouldThrowExceptionWhenBackOffStrategyIsNotProvided
public void shouldThrowExceptionWhenBackOffStrategyIsNotProvided()
-
shouldThrowExceptionWhenStatisticsSenderIsNotProvided
public void shouldThrowExceptionWhenStatisticsSenderIsNotProvided()
-
shouldThrowExceptionWhenSendingIntervalIsNotProvided
public void shouldThrowExceptionWhenSendingIntervalIsNotProvided()
-
shouldSuspendThreadWorkAsExpectedWithNoTimeLeftToWait
public void shouldSuspendThreadWorkAsExpectedWithNoTimeLeftToWait()
-
shouldSuspendThreadWorkAsExpectedWithTimeLeftToWait
public void shouldSuspendThreadWorkAsExpectedWithTimeLeftToWait()
-
shouldSuspendThreadWorkAsExpectedWithDurationLessThanTimeLeftToWait
public void shouldSuspendThreadWorkAsExpectedWithDurationLessThanTimeLeftToWait()
-
shouldSuspendThreadTakeNoActionWhenShouldThreadWorkIsFalse
public void shouldSuspendThreadTakeNoActionWhenShouldThreadWorkIsFalse()
-
shouldSendStatisticsWhenBackOffStrategyAllows
public void shouldSendStatisticsWhenBackOffStrategyAllows()
-
shouldSendStatisticsMultipleTimesWhenSendingFails
public void shouldSendStatisticsMultipleTimesWhenSendingFails()
-
shouldSendStatisticsOnlyWhenBackOffStrategyAllows
public void shouldSendStatisticsOnlyWhenBackOffStrategyAllows()
-
shouldIncreaseTheBackOffWhenSendingIsNotSuccessful
public void shouldIncreaseTheBackOffWhenSendingIsNotSuccessful()
-
shouldResetTheBackOffStrategyOnError
public void shouldResetTheBackOffStrategyOnError()
-
shouldResetTheBackOffStrategyOnSuccess
public void shouldResetTheBackOffStrategyOnSuccess()
-
shouldTryToSendInDefinedIntervals
public void shouldTryToSendInDefinedIntervals()
-
-