Class OverwritingRingBufferTest

java.lang.Object
com.abstractkamen.datastructures.impl.queues.OverwritingRingBufferTest

public class OverwritingRingBufferTest extends Object
  • Constructor Details

    • OverwritingRingBufferTest

      public OverwritingRingBufferTest()
  • Method Details

    • init

      public void init()
    • constructor_shouldThrow_whenCapacityLesserThan_1

      public void constructor_shouldThrow_whenCapacityLesserThan_1()
    • dequeue_shouldThrowExpected_whenEmpty

      public void dequeue_shouldThrowExpected_whenEmpty()
    • dequeue_shouldThrowExpected_whenFilledThenEmptied

      public void dequeue_shouldThrowExpected_whenFilledThenEmptied()
    • spliterator_shouldBeOrderedAndSizedAndSubsized

      public void spliterator_shouldBeOrderedAndSizedAndSubsized()
    • spliterator_estimateSize_shouldReturnExpected_whenUnderCapacity

      public void spliterator_estimateSize_shouldReturnExpected_whenUnderCapacity()
    • isEmpty_shouldReturnTrue_whenEmpty

      public void isEmpty_shouldReturnTrue_whenEmpty()
    • isEmpty_shouldReturnTrue_whenNotEmpty

      public void isEmpty_shouldReturnTrue_whenNotEmpty()
    • spliterator_estimateSize_shouldReturnExpected_whenOverwritten

      public void spliterator_estimateSize_shouldReturnExpected_whenOverwritten()
    • buffer_stream_count_shouldEqualBufferSize_whenEmpty

      public void buffer_stream_count_shouldEqualBufferSize_whenEmpty()
    • buffer_stream_count_shouldEqualBufferSize_whenUnderCapacity

      public void buffer_stream_count_shouldEqualBufferSize_whenUnderCapacity()
    • buffer_stream_count_shouldEqualBufferSize_whenOverwritten

      public void buffer_stream_count_shouldEqualBufferSize_whenOverwritten()
    • enqueueThenDeque_size_toString_capacity_shouldReturnExpected

      public void enqueueThenDeque_size_toString_capacity_shouldReturnExpected()
    • enqueue_size_toString_capacity_shouldReturnExpected_whenCapacityIsOne

      public void enqueue_size_toString_capacity_shouldReturnExpected_whenCapacityIsOne()
    • buffer_iterator_remove_shouldThrowUnsupportedException

      public void buffer_iterator_remove_shouldThrowUnsupportedException()
    • buffer_iterator_next_shouldThrow_WhenEmpty

      public void buffer_iterator_next_shouldThrow_WhenEmpty()
    • emptyBuffer_size_toString_shouldReturn

      public void emptyBuffer_size_toString_shouldReturn()
    • enqueue_iterate_toString_shouldReturnExpected_whenNotOverwritten

      public void enqueue_iterate_toString_shouldReturnExpected_whenNotOverwritten()
    • enqueue_iterate_toString_shouldReturnExpected_whenOverwritten

      public void enqueue_iterate_toString_shouldReturnExpected_whenOverwritten()