|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.collections.BulkTest
org.apache.commons.collections.TestObject
org.apache.commons.collections.TestCollection
org.apache.commons.collections.TestBoundedFifoBuffer
Test cases for BoundedFifoBuffer.
| Field Summary |
| Fields inherited from class org.apache.commons.collections.TestCollection |
collection, confirmed |
| Fields inherited from class org.apache.commons.collections.TestObject |
COLLECTIONS_MAJOR_VERSION |
| Fields inherited from class org.apache.commons.collections.BulkTest |
verboseName |
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
TestBoundedFifoBuffer(java.lang.String n) |
|
| Method Summary | |
java.lang.Object[] |
getFullElements()Overridden because BoundedFifoBuffer doesn't support null elements. |
java.util.Collection |
makeCollection()Returns an empty BoundedFifoBuffer that won't overflow. |
java.util.Collection |
makeConfirmedCollection()Returns an empty ArrayList. |
java.util.Collection |
makeConfirmedFullCollection()Returns a full ArrayList. |
static junit.framework.Test |
suite() |
void |
testBoundedFifoBufferRemove()Tests that the removal operation actually removes the first element. |
void |
testCollectionIteratorFailFast()Overridden, because BoundedFifoBuffer's iterators aren't fail-fast. |
void |
testConstructorException1()Tests that the constructor correctly throws an exception. |
void |
testConstructorException2()Tests that the constructor correctly throws an exception. |
void |
verify()Runs through the regular verifications, but also verifies that the buffer contains the same elements in the same sequence as the list. |
| Methods inherited from class org.apache.commons.collections.BulkTest |
clone, ignoredSimpleTests, makeSuite, toString |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown |
| Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TestBoundedFifoBuffer(java.lang.String n)
| Method Detail |
public static junit.framework.Test suite()
public java.util.Collection makeCollection()
makeCollection in class TestCollectionpublic java.util.Collection makeConfirmedCollection()
makeConfirmedCollection in class TestCollectionpublic java.util.Collection makeConfirmedFullCollection()
makeConfirmedFullCollection in class TestCollectionpublic java.lang.Object[] getFullElements()
getFullElements in class TestCollectionpublic void testCollectionIteratorFailFast()
testCollectionIteratorFailFast in class TestCollectionpublic void verify()
verify in class TestCollectionpublic void testBoundedFifoBufferRemove()
public void testConstructorException1()
public void testConstructorException2()
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||