Keel 2.1RC2

org.apache.commons.collections
Class TestMap.TestMapEntrySet

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.commons.collections.BulkTest
              extended byorg.apache.commons.collections.TestObject
                  extended byorg.apache.commons.collections.TestCollection
                      extended byorg.apache.commons.collections.TestSet
                          extended byorg.apache.commons.collections.TestMap.TestMapEntrySet
All Implemented Interfaces:
java.lang.Cloneable, junit.framework.Test
Enclosing class:
TestMap

class TestMap.TestMapEntrySet
extends TestSet


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
TestMap.TestMapEntrySet()
           
 
Method Summary
protected  java.lang.Object[] getFullElements()
          Returns an array of objects that are contained in a collection produced by TestSet.makeFullCollection().
protected  java.lang.Object[] getOtherElements()
          Returns an array of elements that are not contained in a full collection.
protected  boolean isAddSupported()
          Returns true if the collections produced by TestSet.makeCollection() and TestSet.makeFullCollection() support the add and addAll operations.
protected  boolean isRemoveSupported()
          Returns true if the collections produced by TestSet.makeCollection() and TestSet.makeFullCollection() support the remove, removeAll, retainAll, clear and iterator().remove() methods.
protected  java.util.Set makeEmptySet()
          Makes an empty set.
protected  java.util.Set makeFullSet()
          Makes a full set by first creating an empty set and then adding all the elements returned by getFullElements().
protected  void resetEmpty()
          Resets the TestCollection.collection and TestMap.confirmed fields to empty collections.
protected  void resetFull()
          Resets the TestCollection.collection and TestMap.confirmed fields to full collections.
protected  void verify()
          Provides additional verifications for sets.
 
Methods inherited from class org.apache.commons.collections.TestSet
getConfirmedSet, getSet, makeCollection, makeConfirmedCollection, makeConfirmedFullCollection, makeFullCollection, testSetEquals, testSetHashCode
 
Methods inherited from class org.apache.commons.collections.TestCollection
areEqualElementsDistinguishable, getFullNonNullElements, getFullNonNullStringElements, getOtherNonNullElements, getOtherNonNullStringElements, makeObject, testCollectionAdd, testCollectionAddAll, testCollectionClear, testCollectionContains, testCollectionContainsAll, testCollectionIsEmpty, testCollectionIterator, testCollectionIteratorFailFast, testCollectionIteratorRemove, testCollectionRemove, testCollectionRemoveAll, testCollectionRetainAll, testCollectionSize, testCollectionToArray, testCollectionToArray2, testCollectionToString, testUnsupportedAdd, testUnsupportedRemove
 
Methods inherited from class org.apache.commons.collections.TestObject
getCanonicalEmptyCollectionName, getCanonicalFullCollectionName, getCompatibilityVersion, readExternalFormFromBytes, readExternalFormFromDisk, supportsEmptyCollections, supportsFullCollections, testCanonicalEmptyCollectionExists, testCanonicalFullCollectionExists, testObjectEqualsSelf, testObjectHashCodeEqualsContract, testObjectHashCodeEqualsSelfHashCode, testSimpleSerialization, writeExternalFormToBytes, writeExternalFormToDisk
 
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

TestMap.TestMapEntrySet

public TestMap.TestMapEntrySet()
Method Detail

getFullElements

protected java.lang.Object[] getFullElements()
Description copied from class: TestCollection
Returns an array of objects that are contained in a collection produced by TestCollection.makeFullCollection(). Every element in the returned array must be an element in a full collection.

The default implementation returns a heterogenous array of objects with some duplicates and with the null element. Override if you require specific testing elements. Note that if you override TestCollection.makeFullCollection(), you must override this method to reflect the contents of a full collection.

Overrides:
getFullElements in class TestCollection

getOtherElements

protected java.lang.Object[] getOtherElements()
Description copied from class: TestCollection
Returns an array of elements that are not contained in a full collection. Every element in the returned array must not exist in a collection returned by TestCollection.makeFullCollection(). The default implementation returns a heterogenous array of elements without null. Note that some of the tests add these elements to an empty or full collection, so if your collection restricts certain kinds of elements, you should override this method.

Overrides:
getOtherElements in class TestCollection

makeEmptySet

protected java.util.Set makeEmptySet()
Description copied from class: TestSet
Makes an empty set. The returned set should have no elements.

Specified by:
makeEmptySet in class TestSet
Returns:
an empty set

makeFullSet

protected java.util.Set makeFullSet()
Description copied from class: TestSet
Makes a full set by first creating an empty set and then adding all the elements returned by TestCollection.getFullElements(). Override if your set does not support the add operation.

Overrides:
makeFullSet in class TestSet
Returns:
a full set

isAddSupported

protected boolean isAddSupported()
Description copied from class: TestCollection
Returns true if the collections produced by TestCollection.makeCollection() and TestCollection.makeFullCollection() support the add and addAll operations.

Default implementation returns true. Override if your collection class does not support add or addAll.

Overrides:
isAddSupported in class TestCollection

isRemoveSupported

protected boolean isRemoveSupported()
Description copied from class: TestCollection
Returns true if the collections produced by TestCollection.makeCollection() and TestCollection.makeFullCollection() support the remove, removeAll, retainAll, clear and iterator().remove() methods. Default implementation returns true. Override if your collection class does not support removal operations.

Overrides:
isRemoveSupported in class TestCollection

resetFull

protected void resetFull()
Description copied from class: TestCollection
Resets the TestCollection.collection and TestCollection.confirmed fields to full collections. Invoke this method before performing a modification test.

Overrides:
resetFull in class TestCollection

resetEmpty

protected void resetEmpty()
Description copied from class: TestCollection
Resets the TestCollection.collection and TestCollection.confirmed fields to empty collections. Invoke this method before performing a modification test.

Overrides:
resetEmpty in class TestCollection

verify

protected void verify()
Description copied from class: TestSet
Provides additional verifications for sets.

Overrides:
verify in class TestSet

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.