Class StatisticsPublisherWorkerTest

java.lang.Object
de.hybris.platform.masterserver.impl.StatisticsPublisherWorkerTest

@UnitTest public class StatisticsPublisherWorkerTest extends Object
  • Constructor Details

    • StatisticsPublisherWorkerTest

      public StatisticsPublisherWorkerTest()
  • Method Details

    • 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()