public class FutureCallbackTest extends Object
FutureCallback
class.Constructor and Description |
---|
FutureCallbackTest() |
Modifier and Type | Method and Description |
---|---|
void |
testAddListener()
|
void |
testAddListenerExecuteThrows()
|
void |
testAddListenerPostCallback()
|
void |
testAddListenerRaces()
|
void |
testCallback()
Test method for
FutureCallback.callback(Object) . |
void |
testCallbackWithNull()
Test method for
FutureCallback.callback(Object) . |
void |
testCancel()
Test method for
FutureCallback.cancel(boolean) . |
void |
testCancelFails()
Test method for
FutureCallback.cancel(boolean) . |
void |
testCancelInterrupt()
Test method for
FutureCallback.cancel(boolean) . |
void |
testConcurrentCancel()
Test method for
FutureCallback.cancel(boolean) . |
void |
testException()
Test method for
FutureCallback.exception(Throwable) . |
void |
testGetFromAnotherThread()
Test method for
FutureCallback.get() . |
void |
testGetFromAnotherThreadWithSpin()
Test method for
FutureCallback.get() . |
void |
testGetFromAnotherThreadWithSpinSleepNanos()
Test method for
FutureCallback.get() . |
void |
testGetTimesOut()
Test method for
FutureCallback.get() . |
public void testAddListener() throws Exception
Exception
- On a test failure.public void testAddListenerExecuteThrows() throws Exception
Exception
- On a test failure.public void testAddListenerPostCallback() throws Exception
Exception
- On a test failure.public void testAddListenerRaces() throws Exception
Exception
- On a test failure.public void testCallback() throws Exception
FutureCallback.callback(Object)
.Exception
- On a test failure.public void testCallbackWithNull() throws Exception
FutureCallback.callback(Object)
.Exception
- On a test failure.public void testCancel()
FutureCallback.cancel(boolean)
.public void testCancelFails()
FutureCallback.cancel(boolean)
.public void testCancelInterrupt()
FutureCallback.cancel(boolean)
.public void testConcurrentCancel()
FutureCallback.cancel(boolean)
.public void testException()
FutureCallback.exception(Throwable)
.public void testGetFromAnotherThread()
FutureCallback.get()
.public void testGetFromAnotherThreadWithSpin()
FutureCallback.get()
.public void testGetFromAnotherThreadWithSpinSleepNanos()
FutureCallback.get()
.public void testGetTimesOut()
FutureCallback.get()
.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.