net.walend.collection.test
Class BagTest
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--net.walend.toolkit.junit.TestCase
|
+--net.walend.collection.test.BagTest
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- ImmutableBagTest, MapBagTest
- public abstract class BagTest
- extends net.walend.toolkit.junit.TestCase
- Author:
- David Walend dfw1@cornell.edu
Fields inherited from class junit.framework.TestCase |
|
Constructor Summary |
BagTest(java.lang.String testName)
|
Method Summary |
protected abstract Bag |
createEmptyBag()
|
protected abstract Bag |
createTestBag()
|
protected void |
fillTestBag(Bag bag)
|
void |
testAdd()
|
void |
testAddAll()
|
void |
testClear()
|
void |
testContains(java.util.Collection co,
java.lang.Object it,
boolean expected)
|
void |
testContainsAll(java.util.Collection co,
java.util.Collection it,
boolean expected)
|
void |
testCountObjects(Bag bag,
java.lang.Object ob,
int expected)
|
void |
testGetPrincipleInterface(HasState object,
java.lang.Class expected)
|
void |
testIsEmpty(java.util.Collection co,
boolean expected)
|
void |
testIterator(Bag bag)
|
void |
testQueriesOnEmptyBag()
|
void |
testQueriesOnTestBag()
|
void |
testRemove()
|
void |
testRemoveAll()
|
void |
testRetainAll()
|
void |
testSameContentsAs(Bag bag,
Bag otherBag,
boolean expected)
|
void |
testSameStateAs(HasState bag,
HasState otherBag,
boolean expected)
|
void |
testSerialization()
|
void |
testSize(java.util.Collection co,
int expected)
|
void |
testToString(java.lang.Object ob)
|
Methods inherited from class net.walend.toolkit.junit.TestCase |
fail, 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 |
BagTest
public BagTest(java.lang.String testName)
createEmptyBag
protected abstract Bag createEmptyBag()
createTestBag
protected abstract Bag createTestBag()
fillTestBag
protected void fillTestBag(Bag bag)
testSize
public void testSize(java.util.Collection co,
int expected)
testIsEmpty
public void testIsEmpty(java.util.Collection co,
boolean expected)
testContains
public void testContains(java.util.Collection co,
java.lang.Object it,
boolean expected)
testContainsAll
public void testContainsAll(java.util.Collection co,
java.util.Collection it,
boolean expected)
testCountObjects
public void testCountObjects(Bag bag,
java.lang.Object ob,
int expected)
testSameContentsAs
public void testSameContentsAs(Bag bag,
Bag otherBag,
boolean expected)
testSameStateAs
public void testSameStateAs(HasState bag,
HasState otherBag,
boolean expected)
testGetPrincipleInterface
public void testGetPrincipleInterface(HasState object,
java.lang.Class expected)
testIterator
public void testIterator(Bag bag)
testToString
public void testToString(java.lang.Object ob)
testQueriesOnEmptyBag
public void testQueriesOnEmptyBag()
testQueriesOnTestBag
public void testQueriesOnTestBag()
testAdd
public void testAdd()
testRemove
public void testRemove()
testAddAll
public void testAddAll()
testRemoveAll
public void testRemoveAll()
testRetainAll
public void testRetainAll()
testClear
public void testClear()
testSerialization
public void testSerialization()
Copyright (c) 2001, 2002, David Walend