|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
edu.rice.cs.plt.collect.WeakHashSetTest
public class WeakHashSetTest
A JUnit test case class for WeakHashSet.
Every method starting with the word "test" will be called when running
the test with JUnit.
| Constructor Summary | |
|---|---|
WeakHashSetTest()
|
|
| Method Summary | |
|---|---|
void |
setUp()
Initalizes the test environment |
void |
testAddAndContains()
Tests that the add and contains methods work. |
void |
testAutomaticRemoval()
Tests that objects with no strong references are automatically removed from the set by a garbage collection. |
void |
testClear()
Tests that the clear() method works. |
void |
testIterator()
Tests that the set's Iterator returns all the elements
from the set and no more. |
void |
testRemove()
Tests that the remove method works. |
void |
testSize()
Tests that the size method works. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WeakHashSetTest()
| Method Detail |
|---|
public void setUp()
setUp in class TestCasepublic void testAddAndContains()
add and contains methods work.
public void testSize()
size method works.
public void testClear()
clear() method works.
public void testRemove()
remove method works.
public void testIterator()
Iterator returns all the elements
from the set and no more.
public void testAutomaticRemoval()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||