net.walend.collection.test
Class AbstractMapTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--net.walend.toolkit.junit.TestCase
                    |
                    +--net.walend.collection.test.AbstractMapTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractMapToFreezablesTest, AbstractMutableMapTest, HashMapTest, HashMapTest

public abstract class AbstractMapTest
extends TestCase

Since:
20010712
Author:
David Walend

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
AbstractMapTest(java.lang.String testName)
           
 
Method Summary
protected abstract  Map getEmptyTestMap()
           
protected abstract  TestCollectionFactory getTestCollectionFactory()
           
protected abstract  Map getTestMap()
           
protected  void testContainsAll(Map victem, Map contents, boolean expected)
           
protected  void testContainsKey(Map victem, java.lang.Object key, boolean expected, boolean expectNullPointerException)
           
protected  void testContainsValue(Map victem, java.lang.Object value, boolean expected, boolean expectNullPointerException)
           
 void testCopyConstructor()
           
protected  void testGet(Map victem, java.lang.Object key, java.lang.Object expected, boolean expectNullPointerException)
           
 void testGetIdentitor()
           
protected  void testGetIdentitor(Map victem, Identitor expected)
           
 void testGetJavaMap()
           
protected  void testGetKeys(Map victem, Set expected)
           
 void testGetPrincipleInterface()
           
protected  void testGetValues(Map victem)
           
 void testImmutable()
           
 void testImmutable(java.lang.Object ob, boolean immutable)
           
protected  void testIsEmpty(Map victem, boolean expected)
           
protected  void testKeyIterator(Map victem, Set expected)
           
 void testKeyIteratorRemove()
           
 void testQueriesOnEmpty()
           
 void testQueriesOnTestMap()
           
protected  void testSameContentsAs(Map victem, Map contents, boolean expected)
           
 void testSameStateAs()
           
protected  void testSize(Map victem, int expected)
           
protected  void testValueIterator(Map victem, Set expected)
           
 void testValueIteratorRemove()
           
 
Methods inherited from class net.walend.toolkit.junit.TestCase
fail
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractMapTest

public AbstractMapTest(java.lang.String testName)
Method Detail

testCopyConstructor

public void testCopyConstructor()

testGetIdentitor

public void testGetIdentitor()

testQueriesOnEmpty

public void testQueriesOnEmpty()

testQueriesOnTestMap

public void testQueriesOnTestMap()

testGetJavaMap

public void testGetJavaMap()

testGetPrincipleInterface

public void testGetPrincipleInterface()

testSameStateAs

public void testSameStateAs()

testImmutable

public void testImmutable(java.lang.Object ob,
                          boolean immutable)

testImmutable

public void testImmutable()

testSize

protected void testSize(Map victem,
                        int expected)

testIsEmpty

protected void testIsEmpty(Map victem,
                           boolean expected)

testContainsKey

protected void testContainsKey(Map victem,
                               java.lang.Object key,
                               boolean expected,
                               boolean expectNullPointerException)

testContainsValue

protected void testContainsValue(Map victem,
                                 java.lang.Object value,
                                 boolean expected,
                                 boolean expectNullPointerException)

testKeyIterator

protected void testKeyIterator(Map victem,
                               Set expected)

testKeyIteratorRemove

public void testKeyIteratorRemove()

testValueIteratorRemove

public void testValueIteratorRemove()

testValueIterator

protected void testValueIterator(Map victem,
                                 Set expected)

testContainsAll

protected void testContainsAll(Map victem,
                               Map contents,
                               boolean expected)

testSameContentsAs

protected void testSameContentsAs(Map victem,
                                  Map contents,
                                  boolean expected)

testGet

protected void testGet(Map victem,
                       java.lang.Object key,
                       java.lang.Object expected,
                       boolean expectNullPointerException)

testGetKeys

protected void testGetKeys(Map victem,
                           Set expected)

testGetValues

protected void testGetValues(Map victem)

testGetIdentitor

protected void testGetIdentitor(Map victem,
                                Identitor expected)

getEmptyTestMap

protected abstract Map getEmptyTestMap()

getTestMap

protected abstract Map getTestMap()

getTestCollectionFactory

protected abstract TestCollectionFactory getTestCollectionFactory()


Copyright (c) 2000, 2001, David Walend