public abstract class BlockingQueueTest extends JSR166TestCase
JSR166TestCase.AdjustablePolicy, JSR166TestCase.CallableOne, JSR166TestCase.CheckedBarrier, JSR166TestCase.CheckedCallable<T>, JSR166TestCase.CheckedInterruptedCallable<T>, JSR166TestCase.CheckedInterruptedRunnable, 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.TrackedSmallRunnableeight, 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 and Description |
|---|
BlockingQueueTest() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract BlockingQueue |
emptyCollection()
Returns an empty instance of the implementation class.
|
junit.framework.Test |
testSuite()
Like suite(), but non-static
|
void |
testTakeFromEmptyAfterInterrupt()
take() throws InterruptedException immediately if interrupted
before waiting
|
void |
testTakeFromEmptyBlocksInterruptibly()
take() blocks interruptibly when empty
|
void |
testTimedPollWithOffer()
timed poll before a delayed offer fails; after offer succeeds;
on interruption throws
|
void |
XXXXtestFails()
For debugging.
|
awaiter, checkEmpty, getShortDelay, joinPool, latchAwaitingStringTask, main, newTestSuite, permissivePolicy, possiblyInterruptedRunnable, runTest, runTestProfiled, runWithoutPermissions, runWithPermissions, setDelays, setUp, shouldThrow, shouldThrow, suite, tearDown, threadAssertEquals, threadAssertEquals, threadAssertFalse, threadAssertNull, threadAssertSame, threadAssertTrue, threadFail, threadRecordFailure, threadShouldThrow, threadShouldThrow, threadUnexpectedException, trackedRunnableassertEquals, 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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toStringpublic junit.framework.Test testSuite()
protected abstract BlockingQueue emptyCollection()
public void testTimedPollWithOffer()
throws InterruptedException
InterruptedExceptionpublic void testTakeFromEmptyBlocksInterruptibly()
throws InterruptedException
InterruptedExceptionpublic void testTakeFromEmptyAfterInterrupt()
throws InterruptedException
InterruptedExceptionpublic void XXXXtestFails()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.