Class TaskEngineItemsBufferTest


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

      • TaskEngineItemsBufferTest

        public TaskEngineItemsBufferTest()
    • Method Detail

      • setUp

        public void setUp()
      • shouldExpireAfterGivenDuration

        public void shouldExpireAfterGivenDuration()
                                            throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • shouldBeAlwaysExpiredWhenIntervalIsZero

        public void shouldBeAlwaysExpiredWhenIntervalIsZero()
      • shouldBeAlwaysExpiredWhenIntervalIsNegative

        public void shouldBeAlwaysExpiredWhenIntervalIsNegative()
      • shouldBeAlwaysExpiredWhenIntervalIsNull

        public void shouldBeAlwaysExpiredWhenIntervalIsNull()
      • shouldBeExpiredWhenDurationChangedToNull

        public void shouldBeExpiredWhenDurationChangedToNull()
      • shouldBeExpiredWhenDurationChangedToZero

        public void shouldBeExpiredWhenDurationChangedToZero()
      • shouldBeExpiredWhenDurationChangedToNegativeValue

        public void shouldBeExpiredWhenDurationChangedToNegativeValue()
      • shouldBeNotExpiredWhenDurationChangedFromZeroToPositiveValue

        public void shouldBeNotExpiredWhenDurationChangedFromZeroToPositiveValue()
      • shouldProvideRequestedNumberOfTasksWhenMoreIsAvailable

        public void shouldProvideRequestedNumberOfTasksWhenMoreIsAvailable()
      • shouldProvideAvailableNumberOfTasksWhenLessThanRequestedIsAvailable

        public void shouldProvideAvailableNumberOfTasksWhenLessThanRequestedIsAvailable()
      • shouldntProvideTasksWhenBufferIsEmpty

        public void shouldntProvideTasksWhenBufferIsEmpty()
      • shouldntProvideTasksWhenSetToNull

        public void shouldntProvideTasksWhenSetToNull()
      • shouldntBeReadedFullyByConsecutiveReads

        public void shouldntBeReadedFullyByConsecutiveReads()
      • shouldntBeReadedFullyAndConsistentlyByMultipleThreads

        public void shouldntBeReadedFullyAndConsistentlyByMultipleThreads()
                                                                   throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException