public class ExecutorCompletionServiceTest 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 |
---|
ExecutorCompletionServiceTest() |
Modifier and Type | Method and Description |
---|---|
void |
testConstructorNPE()
Creating a new ECS with null Executor throw NPE
|
void |
testConstructorNPE2()
Creating a new ECS with null queue throw NPE
|
void |
testNewTaskForCallable()
Submitting to underlying AES that overrides newTaskFor(Callable)
returns and eventually runs Future returned by newTaskFor.
|
void |
testNewTaskForRunnable()
Submitting to underlying AES that overrides newTaskFor(Runnable,T)
returns and eventually runs Future returned by newTaskFor.
|
void |
testPoll1()
If poll returns non-null, the returned task is completed
|
void |
testPoll2()
If timed poll returns non-null, the returned task is completed
|
void |
testSubmitNPE()
Submitting a null callable throws NPE
|
void |
testSubmitNPE2()
Submitting a null runnable throws NPE
|
void |
testTake()
A taken submitted task is completed
|
void |
testTake2()
Take returns the same future object returned by submit
|
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 testConstructorNPE()
public void testConstructorNPE2()
public void testSubmitNPE()
public void testSubmitNPE2()
public void testTake() throws InterruptedException
InterruptedException
public void testTake2() throws InterruptedException
InterruptedException
public void testPoll1() throws Exception
Exception
public void testPoll2() throws InterruptedException
InterruptedException
public void testNewTaskForCallable() throws InterruptedException
InterruptedException
public void testNewTaskForRunnable() throws InterruptedException
InterruptedException