Package de.hybris.platform.task.impl
Class TaskEngineItemsBufferTest
- java.lang.Object
-
- de.hybris.platform.task.impl.TaskEngineItemsBufferTest
-
@UnitTest public class TaskEngineItemsBufferTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TaskEngineItemsBufferTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidshouldBeAlwaysExpiredWhenIntervalIsNegative()voidshouldBeAlwaysExpiredWhenIntervalIsNull()voidshouldBeAlwaysExpiredWhenIntervalIsZero()voidshouldBeExpiredWhenDurationChangedToNegativeValue()voidshouldBeExpiredWhenDurationChangedToNull()voidshouldBeExpiredWhenDurationChangedToZero()voidshouldBeNotExpiredWhenDurationChangedFromZeroToPositiveValue()voidshouldExpireAfterGivenDuration()voidshouldntBeReadedFullyAndConsistentlyByMultipleThreads()voidshouldntBeReadedFullyByConsecutiveReads()voidshouldntProvideTasksWhenBufferIsEmpty()voidshouldntProvideTasksWhenSetToNull()voidshouldProvideAvailableNumberOfTasksWhenLessThanRequestedIsAvailable()voidshouldProvideRequestedNumberOfTasksWhenMoreIsAvailable()
-
-
-
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
-
-