public class ThreadLocalRandomTest 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, SIZE, SMALL_DELAY_MS, TEST_STRING, testImplementationDetails, three, two, zero
Constructor and Description |
---|
ThreadLocalRandomTest() |
Modifier and Type | Method and Description |
---|---|
void |
testDifferentSequences()
Different threads produce different pseudo-random sequences
|
void |
testNextBoolean()
Repeated calls to nextBoolean produce at least two distinct results
|
void |
testNextDouble()
Repeated calls to nextDouble produce at least two distinct results
|
void |
testNextDoubleBounded2()
nextDouble(least, bound) returns least <= value < bound;
repeated calls produce at least two distinct results
|
void |
testNextDoubleBoundNonPositive()
nextDouble(non-positive) throws IllegalArgumentException
|
void |
testNextFloat()
Repeated calls to nextFloat produce at least two distinct results
|
void |
testNextGaussian()
Repeated calls to nextGaussian produce at least two distinct results
|
void |
testNextInt()
Repeated calls to nextInt produce at least two distinct results
|
void |
testNextIntBadBounds()
nextInt(least >= bound) throws IllegalArgumentException
|
void |
testNextIntBounded()
nextInt(bound) returns 0 <= value < bound;
repeated calls produce at least two distinct results
|
void |
testNextIntBounded2()
nextInt(least, bound) returns least <= value < bound;
repeated calls produce at least two distinct results
|
void |
testNextIntBoundNonPositive()
nextInt(non-positive) throws IllegalArgumentException
|
void |
testNextLong()
Repeated calls to nextLong produce at least two distinct results
|
void |
testNextLongBadBounds()
nextLong(least >= bound) throws IllegalArgumentException
|
void |
testNextLongBounded()
nextLong(bound) returns 0 <= value < bound;
repeated calls produce at least two distinct results
|
void |
testNextLongBounded2()
nextLong(least, bound) returns least <= value < bound;
repeated calls produce at least two distinct results
|
void |
testNextLongBoundNonPositive()
nextLong(non-positive) throws IllegalArgumentException
|
void |
testSetSeed()
setSeed throws UnsupportedOperationException
|
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 testSetSeed()
public void testNextInt()
public void testNextLong()
public void testNextBoolean()
public void testNextFloat()
public void testNextDouble()
public void testNextGaussian()
public void testNextIntBoundNonPositive()
public void testNextIntBadBounds()
public void testNextIntBounded()
public void testNextIntBounded2()
public void testNextLongBoundNonPositive()
public void testNextLongBadBounds()
public void testNextLongBounded()
public void testNextLongBounded2()
public void testNextDoubleBoundNonPositive()
public void testNextDoubleBounded2()
public void testDifferentSequences()