Package de.freaklamarsch.systarest.tests
Class CircularBufferTest
java.lang.Object
de.freaklamarsch.systarest.tests.CircularBufferTest
public class CircularBufferTest
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description (package private) CircularBuffer<java.lang.Integer>
cb
(package private) int
testCapacity
-
Constructor Summary
Constructors Constructor Description CircularBufferTest()
-
Method Summary
Modifier and Type Method Description void
testAdd()
void
testAddAndRemove()
void
testAddAndRemove_WithString()
void
testAddToFullBufferWithoutOverwrite()
void
testAddToFullBufferWithOverwrite()
void
testAddWithOverwrite()
void
testClear()
void
testConstructor()
void
testEnd()
void
testInvalidCapacity()
void
testOverwrite()
void
testPeekAndEndOnEmptyBuffer()
void
testRemove()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
testCapacity
final int testCapacity- See Also:
- Constant Field Values
-
cb
CircularBuffer<java.lang.Integer> cb
-
-
Constructor Details
-
CircularBufferTest
public CircularBufferTest()
-
-
Method Details
-
testAddAndRemove
@Test public void testAddAndRemove() -
testOverwrite
@Test public void testOverwrite() -
testInvalidCapacity
@Test public void testInvalidCapacity() -
testAddToFullBufferWithoutOverwrite
@Test public void testAddToFullBufferWithoutOverwrite() -
testAddToFullBufferWithOverwrite
@Test public void testAddToFullBufferWithOverwrite() -
testConstructor
@Test public void testConstructor() -
testAdd
@Test public void testAdd() -
testAddWithOverwrite
@Test public void testAddWithOverwrite() -
testRemove
@Test public void testRemove() -
testClear
@Test public void testClear() -
testAddAndRemove_WithString
@Test public void testAddAndRemove_WithString() -
testEnd
@Test public void testEnd() -
testPeekAndEndOnEmptyBuffer
@Test public void testPeekAndEndOnEmptyBuffer()
-