Class StatisticsPublisherWorkerTest


  • @UnitTest
    public class StatisticsPublisherWorkerTest
    extends java.lang.Object
    • Constructor Detail

      • StatisticsPublisherWorkerTest

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