|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
JSR166TestCase
CopyOnWriteArraySetTest
public class CopyOnWriteArraySetTest
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class JSR166TestCase |
|---|
eight, expensiveTests, five, four, LONG_DELAY_MS, m1, m10, m2, m3, m4, m5, m6, MEDIUM_DELAY_MS, nine, one, seven, SHORT_DELAY_MS, six, SIZE, SMALL_DELAY_MS, TEST_STRING, three, two, zero |
| Constructor Summary | |
|---|---|
CopyOnWriteArraySetTest()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
|
void |
testAdd2()
add will not add the element if it already exists in the set |
void |
testAdd3()
add adds the element when it does not exist in the set |
void |
testAddAll()
addAll adds each element from the given collection |
void |
testAddAll2()
addAll adds each element from the given collection that did not already exist in the set |
void |
testClear()
clear removes all elements from the set |
void |
testConstructor()
Default-constructed set is empty |
void |
testConstructor3()
Collection-constructed set holds all of its elements |
void |
testContains()
contains returns true for added elements |
void |
testContainsAll()
containsAll returns true for collections with subset of elements |
void |
testEquals()
Sets with equal elements are equal |
void |
testIsEmpty()
isEmpty is true when empty, else false |
void |
testIterator()
iterator() returns an iterator containing the elements of the set |
void |
testIteratorRemove()
iterator remove is unsupported |
void |
testRemove()
remove removes an element |
void |
testRemoveAll()
removeAll removes all elements from the given collection |
void |
testSerialization()
A deserialized serialized set is equal |
void |
testSize()
size returns the number of elements |
void |
testToArray_ArrayStoreException()
toArray throws an ArrayStoreException when the given array can not store the objects inside the set |
void |
testToArray()
toArray returns an Object array containing all elements from the set |
void |
testToArray2()
toArray returns an Integer array containing all elements from the set |
void |
testToString()
toString holds toString of elements |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, setName, 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, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CopyOnWriteArraySetTest()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
public void testConstructor()
public void testConstructor3()
public void testAddAll()
public void testAddAll2()
public void testAdd2()
public void testAdd3()
public void testClear()
public void testContains()
public void testEquals()
public void testContainsAll()
public void testIsEmpty()
public void testIterator()
public void testIteratorRemove()
public void testToString()
public void testRemoveAll()
public void testRemove()
public void testSize()
public void testToArray()
public void testToArray2()
public void testToArray_ArrayStoreException()
public void testSerialization()
throws java.lang.Exception
java.lang.Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||