|
||||||||
| 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
ConcurrentSkipListSetTest
public class ConcurrentSkipListSetTest
| 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 | |
|---|---|
ConcurrentSkipListSetTest()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
|
void |
testAdd()
Add of comparable element succeeds |
void |
testAddAll1()
addAll(null) throws NPE |
void |
testAddAll2()
addAll of a collection with null elements throws NPE |
void |
testAddAll3()
addAll of a collection with any null elements throws NPE after possibly adding some elements |
void |
testAddAll5()
Set contains all elements of successful addAll |
void |
testAddDup()
Add of duplicate element fails |
void |
testAddNonComparable()
Add of non-Comparable throws CCE |
void |
testAddNull()
add(null) throws NPE |
void |
testCeiling()
ceiling returns next element |
void |
testClear()
clear removes all elements |
void |
testConstructor1()
A new set has unbounded capacity |
void |
testConstructor3()
Initializing from null Collection throws NPE |
void |
testConstructor4()
Initializing from Collection of null elements throws NPE |
void |
testConstructor5()
Initializing from Collection with some null elements throws NPE |
void |
testConstructor6()
Set contains all elements of collection used to initialize |
void |
testConstructor7()
The comparator used in constructor is used |
void |
testContains()
contains(x) reports true when elements added but not yet removed |
void |
testContainsAll()
containsAll(c) is true when c contains a subset of elements |
void |
testEmpty()
isEmpty is true before add, false after |
void |
testEmptyIterator()
iterator of empty set has no elements |
void |
testFloor()
floor returns preceding element |
void |
testHeadSetContents()
headSet returns set with keys in requested range |
void |
testHigher()
higher returns next element |
void |
testIterator()
iterator iterates through all elements |
void |
testIteratorRemove()
iterator.remove removes current element |
void |
testLower()
lower returns preceding element |
void |
testPollFirst()
pollFirst succeeds unless empty |
void |
testPollLast()
pollLast succeeds unless empty |
void |
testRecursiveSubSets()
Subsets of subsets subdivide correctly |
void |
testRemoveAll()
removeAll(c) removes only those elements of c and reports true if changed |
void |
testRemoveElement()
remove(x) removes x and returns true if present |
void |
testRetainAll()
retainAll(c) retains only those elements of c and reports true if changed |
void |
testSerialization()
A deserialized serialized set has same elements |
void |
testSize()
size changes when elements added and removed |
void |
testSubSetContents()
subSet returns set with keys in requested range |
void |
testSubSetContents2()
|
void |
testTailSetContents()
tailSet returns set with keys in requested range |
void |
testToArray()
toArray contains all elements in sorted order |
void |
testToArray2()
toArray(a) contains all elements in sorted order |
void |
testToString()
toString contains toStrings 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 ConcurrentSkipListSetTest()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
public void testConstructor1()
public void testConstructor3()
public void testConstructor4()
public void testConstructor5()
public void testConstructor6()
public void testConstructor7()
public void testEmpty()
public void testSize()
public void testAddNull()
public void testAdd()
public void testAddDup()
public void testAddNonComparable()
public void testAddAll1()
public void testAddAll2()
public void testAddAll3()
public void testAddAll5()
public void testPollFirst()
public void testPollLast()
public void testRemoveElement()
public void testContains()
public void testClear()
public void testContainsAll()
public void testRetainAll()
public void testRemoveAll()
public void testLower()
public void testHigher()
public void testFloor()
public void testCeiling()
public void testToArray()
public void testToArray2()
public void testIterator()
public void testEmptyIterator()
public void testIteratorRemove()
public void testToString()
public void testSerialization()
throws java.lang.Exception
java.lang.Exceptionpublic void testSubSetContents()
public void testSubSetContents2()
public void testHeadSetContents()
public void testTailSetContents()
public void testRecursiveSubSets()
throws java.lang.Exception
java.lang.Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||