Save This Page
Home » commons-collections-3.2.1-src » org.apache.commons » collections » [javadoc | source]
org.apache.commons.collections
public class: TestBoundedFifoBuffer [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.apache.commons.collections.BulkTest
         org.apache.commons.collections.TestObject
            org.apache.commons.collections.TestCollection
               org.apache.commons.collections.TestBoundedFifoBuffer

All Implemented Interfaces:
    Cloneable

Direct Known Subclasses:
    TestBoundedFifoBuffer2

Test cases for BoundedFifoBuffer.
Fields inherited from org.apache.commons.collections.TestCollection:
collection,  confirmed
Fields inherited from org.apache.commons.collections.TestObject:
COLLECTIONS_MAJOR_VERSION
Fields inherited from org.apache.commons.collections.BulkTest:
verboseName
Constructor:
 public TestBoundedFifoBuffer(String n) 
Method from org.apache.commons.collections.TestBoundedFifoBuffer Summary:
getFullElements,   makeCollection,   makeConfirmedCollection,   makeConfirmedFullCollection,   suite,   testBoundedFifoBufferRemove,   testCollectionIteratorFailFast,   testConstructorException1,   testConstructorException2,   verify
Methods from org.apache.commons.collections.TestCollection:
areEqualElementsDistinguishable,   getFullElements,   getFullNonNullElements,   getFullNonNullStringElements,   getOtherElements,   getOtherNonNullElements,   getOtherNonNullStringElements,   isAddSupported,   isRemoveSupported,   makeCollection,   makeConfirmedCollection,   makeConfirmedFullCollection,   makeFullCollection,   makeObject,   resetEmpty,   resetFull,   testCollectionAdd,   testCollectionAddAll,   testCollectionClear,   testCollectionContains,   testCollectionContainsAll,   testCollectionIsEmpty,   testCollectionIterator,   testCollectionIteratorFailFast,   testCollectionIteratorRemove,   testCollectionRemove,   testCollectionRemoveAll,   testCollectionRetainAll,   testCollectionSize,   testCollectionToArray,   testCollectionToArray2,   testCollectionToString,   testUnsupportedAdd,   testUnsupportedRemove,   verify
Methods from org.apache.commons.collections.TestObject:
getCanonicalEmptyCollectionName,   getCanonicalFullCollectionName,   getCompatibilityVersion,   makeObject,   readExternalFormFromBytes,   readExternalFormFromDisk,   supportsEmptyCollections,   supportsFullCollections,   testCanonicalEmptyCollectionExists,   testCanonicalFullCollectionExists,   testObjectEqualsSelf,   testObjectHashCodeEqualsContract,   testObjectHashCodeEqualsSelfHashCode,   testSimpleSerialization,   writeExternalFormToBytes,   writeExternalFormToDisk
Methods from org.apache.commons.collections.BulkTest:
clone,   ignoredSimpleTests,   makeSuite,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.collections.TestBoundedFifoBuffer Detail:
 public Object[] getFullElements() 
    Overridden because BoundedFifoBuffer doesn't support null elements.
 public Collection makeCollection() 
    Returns an empty BoundedFifoBuffer that won't overflow.
 public Collection makeConfirmedCollection() 
    Returns an empty ArrayList.
 public Collection makeConfirmedFullCollection() 
    Returns a full ArrayList.
 public static Test suite() 
 public  void testBoundedFifoBufferRemove() 
    Tests that the removal operation actually removes the first element.
 public  void testCollectionIteratorFailFast() 
    Overridden, because BoundedFifoBuffer's iterators aren't fail-fast.
 public  void testConstructorException1() 
    Tests that the constructor correctly throws an exception.
 public  void testConstructorException2() 
    Tests that the constructor correctly throws an exception.
 public  void verify() 
    Runs through the regular verifications, but also verifies that the buffer contains the same elements in the same sequence as the list.