|
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.TestMap
org.apache.commons.collections.TestSequencedHashMap
Unit tests SequencedHashMap. Be sure to use the "labRat" instance whenever possible, so that subclasses will be tested correctly.
| Nested Class Summary |
| Nested classes inherited from class org.apache.commons.collections.TestMap |
TestMap.TestMapEntrySet, TestMap.TestMapKeySet, TestMap.TestMapValues |
| Field Summary | |
protected SequencedHashMap |
labRatThe instance to experiment on. |
| Fields inherited from class org.apache.commons.collections.TestMap |
confirmed, entrySet, keySet, map, values |
| 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 | |
TestSequencedHashMap(java.lang.String name) |
|
| Method Summary | |
int |
getCompatibilityVersion()This constant makes it possible for TestMap (and other subclasses, if necessary) to automatically check CVS for a versionX copy of a Serialized object, so we can make sure that compatibility is maintained. |
protected java.lang.Object[] |
getKeys() |
protected java.lang.Object[] |
getValues() |
static void |
main(java.lang.String[][] args) |
java.util.Map |
makeEmptyMap()Return a new, empty Map to be used for testing. |
void |
setUp() |
static junit.framework.Test |
suite() |
protected void |
tearDown()Erases any leftover instance variables by setting them to null. |
void |
testFullMapSerialization() |
void |
testSequenceMap() |
void |
testYoungest() |
void |
testYoungestReplaceNullWithValue() |
void |
testYoungestReplaceValueWithNull() |
| 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 |
| 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 |
| Field Detail |
protected SequencedHashMap labRat
| Constructor Detail |
public TestSequencedHashMap(java.lang.String name)
| Method Detail |
public static junit.framework.Test suite()
public int getCompatibilityVersion()
TestObjectgetCompatibilityVersion in class TestObjectpublic static void main(java.lang.String[][] args)
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Map makeEmptyMap()
TestMapMap to be used for testing.
makeEmptyMap in class TestMapprotected java.lang.Object[] getKeys()
protected java.lang.Object[] getValues()
public void testSequenceMap()
throws java.lang.Throwable
java.lang.Throwablepublic void testYoungest()
public void testYoungestReplaceNullWithValue()
public void testYoungestReplaceValueWithNull()
public void testFullMapSerialization()
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected void tearDown()
TestMaptearDown in class TestMap
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||