public class ConcurrentHashMap8Test extends JSR166TestCase
JSR166TestCase.AdjustablePolicy, JSR166TestCase.CallableOne, JSR166TestCase.CheckedBarrier, JSR166TestCase.CheckedCallable<T>, JSR166TestCase.CheckedInterruptedCallable<T>, JSR166TestCase.CheckedInterruptedRunnable, JSR166TestCase.CheckedRecursiveAction, JSR166TestCase.CheckedRecursiveTask<T>, JSR166TestCase.CheckedRunnable, JSR166TestCase.LongPossiblyInterruptedRunnable, JSR166TestCase.MediumInterruptedRunnable, JSR166TestCase.MediumPossiblyInterruptedRunnable, JSR166TestCase.MediumRunnable, JSR166TestCase.NoOpCallable, JSR166TestCase.NoOpREHandler, JSR166TestCase.NoOpRunnable, JSR166TestCase.NPETask, JSR166TestCase.RunnableShouldThrow, JSR166TestCase.ShortInterruptedRunnable, JSR166TestCase.ShortRunnable, JSR166TestCase.SimpleThreadFactory, JSR166TestCase.SmallCallable, JSR166TestCase.SmallPossiblyInterruptedRunnable, JSR166TestCase.SmallRunnable, JSR166TestCase.StringTask, JSR166TestCase.ThreadShouldThrow, JSR166TestCase.TrackedCallable, JSR166TestCase.TrackedLongRunnable, JSR166TestCase.TrackedMediumRunnable, JSR166TestCase.TrackedNoOpRunnable, JSR166TestCase.TrackedRunnable, JSR166TestCase.TrackedShortRunnable, JSR166TestCase.TrackedSmallRunnable
eight, expensiveTests, five, four, JAVA_CLASS_VERSION, JAVA_SPECIFICATION_VERSION, LONG_DELAY_MS, m1, m10, m2, m3, m4, m5, m6, MEDIUM_DELAY_MS, nine, one, seven, SHORT_DELAY_MS, six, SMALL_DELAY_MS, TEST_STRING, testImplementationDetails, three, two, zero
Constructor and Description |
---|
ConcurrentHashMap8Test() |
Modifier and Type | Method and Description |
---|---|
void |
testAdd2()
keySet.add will not add the element if it already exists in the set
|
void |
testAdd3()
keySet.add adds the element when it does not exist in the set
|
void |
testAdd4()
keySet.add throws UnsupportedOperationException if no default
mapped value
|
void |
testAdd5()
keySet.add throws NullPointerException if the specified key is
null
|
void |
testAddAll()
keySet.addAll adds each element from the given collection
|
void |
testAddAll2()
keySet.addAll adds each element from the given collection that did not
already exist in the set
|
void |
testClear()
keyset.clear removes all elements from the set
|
void |
testCompute()
compute does not replace if the function returns null
|
void |
testCompute2()
compute adds when the given key is not present
|
void |
testCompute3()
compute replaces when the given key is present
|
void |
testCompute4()
compute removes when the given key is present and function returns null
|
void |
testComputeIfAbsent()
computeIfAbsent adds when the given key is not present
|
void |
testComputeIfAbsent2()
computeIfAbsent does not replace if the key is already present
|
void |
testComputeIfAbsent3()
computeIfAbsent does not add if function returns null
|
void |
testComputeIfPresent()
computeIfPresent does not replace if the key is already present
|
void |
testComputeIfPresent2()
computeIfPresent adds when the given key is not present
|
void |
testContains()
keyset.contains returns true for added elements
|
void |
testContainsAll()
KeySet.containsAll returns true for collections with subset of elements
|
void |
testEmptyIterator()
iterator of empty collections has no elements
|
void |
testEquals()
KeySets with equal elements are equal
|
void |
testForEachEntryInParallel()
forEachEntryInParallel traverses all entries
|
void |
testForEachEntrySequentially()
forEachEntrySequentially traverses all entries
|
void |
testForEachInParallel()
forEachInParallel traverses all mappings
|
void |
testForEachKeyInParallel()
forEachKeyInParallel traverses all keys
|
void |
testForEachKeySequentially()
forEachKeySequentially traverses all keys
|
void |
testForEachSequentially()
forEachSequentially traverses all mappings
|
void |
testForEachValueInParallel()
forEachValueInParallel traverses all values
|
void |
testForEachValueSequentially()
forEachValueSequentially traverses all values
|
void |
testGetMappedValue()
KeySetView.getMappedValue returns the map's mapped value
|
void |
testGetOrDefault()
getOrDefault returns value if present, else default
|
void |
testIsEmpty()
KeySet.isEmpty is true when empty, else false
|
void |
testIterator()
KeySet.iterator() returns an iterator containing the elements of the
set
|
void |
testIteratorRemove()
KeySet.iterator.remove removes current element
|
void |
testKeySetAddRemove()
keySet.add adds the key with the established value to the map;
remove removes it.
|
void |
testKeySetSpliterator()
KeySetView.spliterator returns spliterator over the elements in this set
|
void |
testMappedForEachEntryInParallel()
Mapped forEachEntryInParallel traverses the given
transformations of all entries
|
void |
testMappedForEachEntrySequentially()
Mapped forEachEntrySequentially traverses the given
transformations of all entries
|
void |
testMappedForEachInParallel()
Mapped forEachInParallel traverses the given
transformations of all mappings
|
void |
testMappedForEachKeyInParallel()
Mapped forEachKeyInParallel traverses the given
transformations of all keys
|
void |
testMappedForEachKeySequentially()
Mapped forEachKeySequentially traverses the given
transformations of all keys
|
void |
testMappedForEachSequentially()
Mapped forEachSequentially traverses the given
transformations of all mappings
|
void |
testMappedForEachValueInParallel()
Mapped forEachValueInParallel traverses the given
transformations of all values
|
void |
testMappedForEachValueSequentially()
Mapped forEachValueSequentially traverses the given
transformations of all values
|
void |
testMappedReduceInParallel()
reduceInParallel accumulate across all transformed mappings
|
void |
testMappedReduceSequentially()
reduceSequentially accumulates across all transformed mappings
|
void |
testMapReduceKeysInParallel()
Mapped reduceKeysInParallel, accumulates mapped keys
|
void |
testMapReduceKeysSequentially()
Mapped reduceKeysSequentially accumulates mapped keys
|
void |
testMapReduceValuesInParallel()
Mapped reduceValuesInParallel accumulates mapped values
|
void |
testMapReduceValuesSequentially()
Mapped reduceValuesSequentially accumulates mapped values
|
void |
testMerge1()
merge adds when the given key is not present
|
void |
testMerge2()
merge replaces when the given key is present
|
void |
testMerge3()
merge removes when the given key is present and function returns null
|
void |
testNewKeySet()
Default-constructed set is empty
|
void |
testReduceEntriesInParallel()
reduceEntriesInParallel accumulate across all entries
|
void |
testReduceEntriesSequentially()
reduceEntriesSequentially accumulates across all entries
|
void |
testReduceKeysInParallel()
reduceKeysInParallel accumulates across all keys
|
void |
testReduceKeysSequentially()
reduceKeysSequentially accumulates across all keys,
|
void |
testReduceKeysToDoubleInParallel()
reduceKeysToDoubleInParallel accumulates mapped values
|
void |
testReduceKeysToDoubleSequentially()
reduceKeysToDoubleSequentially accumulates mapped keys
|
void |
testReduceKeysToIntInParallel()
reduceKeysToIntInParallel accumulates mapped keys
|
void |
testReduceKeysToIntSequentially()
reduceKeysToIntSequentially accumulates mapped keys
|
void |
testReduceKeysToLongInParallel()
reduceKeysToLongInParallel accumulates mapped keys
|
void |
testReduceKeysToLongSequentially()
reduceKeysToLongSequentially accumulates mapped keys
|
void |
testReduceValuesInParallel()
reduceValuesInParallel accumulates across all values
|
void |
testReduceValuesSequentially()
reduceValuesSequentially accumulates across all values
|
void |
testReduceValuesToDoubleInParallel()
reduceValuesToDoubleInParallel accumulates mapped values
|
void |
testReduceValuesToDoubleSequentially()
reduceValuesToDoubleSequentially accumulates mapped values
|
void |
testReduceValuesToIntInParallel()
reduceValuesToIntInParallel accumulates mapped values
|
void |
testReduceValuesToIntSequentially()
reduceValuesToIntSequentially accumulates mapped values
|
void |
testReduceValuesToLongInParallel()
reduceValuesToLongInParallel accumulates mapped values
|
void |
testReduceValuesToLongSequentially()
reduceValuesToLongSequentially accumulates mapped values
|
void |
testRemove()
KeySet.remove removes an element
|
void |
testRemoveAll()
KeySet.removeAll removes all elements from the given collection
|
void |
testReplaceAll()
replaceAll replaces all matching values.
|
void |
testSearchEntriesInParallel()
searchEntriesInParallel returns a non-null result of search
function, or null if none
|
void |
testSearchEntriesSequentially()
searchEntriesSequentially returns a non-null result of search
function, or null if none
|
void |
testSearchInParallel()
searchInParallel returns a non-null result of search function,
or null if none
|
void |
testSearchKeysInParallel()
searchKeysInParallel returns a non-null result of search
function, or null if none
|
void |
testSearchKeysSequentially()
searchKeysSequentially returns a non-null result of search
function, or null if none
|
void |
testSearchSequentially()
searchSequentially returns a non-null result of search
function, or null if none
|
void |
testSearchValuesInParallel()
searchValuesInParallel returns a non-null result of search
function, or null if none
|
void |
testSearchValuesSequentially()
searchValuesSequentially returns a non-null result of search
function, or null if none
|
void |
testSerialization()
A deserialized serialized set is equal
|
void |
testSize()
keySet.size returns the number of elements
|
void |
testToArray()
KeySet.toArray() returns an Object array containing all elements from
the set
|
void |
testToArray2()
toArray(Integer array) returns an Integer array containing all
elements from the set
|
void |
testToString()
KeySet.toString holds toString of elements
|
addNamedTestClasses, assertIteratorExhausted, assertThrows, atLeastJava10, atLeastJava6, atLeastJava7, atLeastJava8, atLeastJava9, await, await, await, awaiter, countDowner, getShortDelay, jdk8ParameterizedTestSuite, latchAwaitingStringTask, newTestSuite, parameterizedTestSuite, permissivePolicy, possiblyInterruptedRunnable, runBare, runTest, runTestProfiled, runWithoutPermissions, runWithPermissions, runWithSecurityManagerWithPermissions, setDelays, setUp, shouldThrow, shouldThrow, tearDown, testMethodNames, threadAssertEquals, threadAssertEquals, threadAssertFalse, threadAssertNull, threadAssertSame, threadAssertTrue, threadFail, threadRecordFailure, threadShouldThrow, threadShouldThrow, threadUnexpectedException, trackedRunnable
public void testGetOrDefault()
public void testComputeIfAbsent()
public void testComputeIfAbsent2()
public void testComputeIfAbsent3()
public void testComputeIfPresent()
public void testComputeIfPresent2()
public void testCompute()
public void testCompute2()
public void testCompute3()
public void testCompute4()
public void testMerge1()
public void testMerge2()
public void testMerge3()
public void testReplaceAll()
public void testNewKeySet()
public void testKeySetAddRemove()
public void testAddAll()
public void testAddAll2()
public void testAdd2()
public void testAdd3()
public void testAdd4()
public void testAdd5()
public void testGetMappedValue()
public void testKeySetSpliterator()
public void testClear()
public void testContains()
public void testEquals()
public void testContainsAll()
public void testIsEmpty()
public void testIterator()
public void testEmptyIterator()
public void testIteratorRemove()
public void testToString()
public void testRemoveAll()
public void testRemove()
public void testSize()
public void testToArray()
public void testToArray2()
public void testSerialization() throws Exception
Exception
public void testForEachKeySequentially()
public void testForEachValueSequentially()
public void testForEachSequentially()
public void testForEachEntrySequentially()
public void testForEachKeyInParallel()
public void testForEachValueInParallel()
public void testForEachInParallel()
public void testForEachEntryInParallel()
public void testMappedForEachKeySequentially()
public void testMappedForEachValueSequentially()
public void testMappedForEachSequentially()
public void testMappedForEachEntrySequentially()
public void testMappedForEachKeyInParallel()
public void testMappedForEachValueInParallel()
public void testMappedForEachInParallel()
public void testMappedForEachEntryInParallel()
public void testReduceKeysSequentially()
public void testReduceValuesSequentially()
public void testReduceEntriesSequentially()
public void testReduceKeysInParallel()
public void testReduceValuesInParallel()
public void testReduceEntriesInParallel()
public void testMapReduceKeysSequentially()
public void testMapReduceValuesSequentially()
public void testMappedReduceSequentially()
public void testMapReduceKeysInParallel()
public void testMapReduceValuesInParallel()
public void testMappedReduceInParallel()
public void testReduceKeysToLongSequentially()
public void testReduceKeysToIntSequentially()
public void testReduceKeysToDoubleSequentially()
public void testReduceValuesToLongSequentially()
public void testReduceValuesToIntSequentially()
public void testReduceValuesToDoubleSequentially()
public void testReduceKeysToLongInParallel()
public void testReduceKeysToIntInParallel()
public void testReduceKeysToDoubleInParallel()
public void testReduceValuesToLongInParallel()
public void testReduceValuesToIntInParallel()
public void testReduceValuesToDoubleInParallel()
public void testSearchKeysSequentially()
public void testSearchValuesSequentially()
public void testSearchSequentially()
public void testSearchEntriesSequentially()
public void testSearchKeysInParallel()
public void testSearchValuesInParallel()
public void testSearchInParallel()
public void testSearchEntriesInParallel()