org.curjent.test.agent
Class FutureTest
java.lang.Object
org.curjent.test.agent.AgentTest
org.curjent.test.agent.FutureTest
public class FutureTest
- extends AgentTest
Test cases for agent methods returning Future
references.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
agent
FutureTest.FutureTestAgent agent
FutureTest
public FutureTest()
newTestAgent
protected TestAgent newTestAgent()
- Specified by:
newTestAgent
in class AgentTest
testFutureGet
public void testFutureGet()
throws InterruptedException,
ExecutionException
- Throws:
InterruptedException
ExecutionException
testBoxedFutures
public void testBoxedFutures()
throws InterruptedException,
ExecutionException
- Throws:
InterruptedException
ExecutionException
getValue
private Object getValue(Future<?> future)
throws InterruptedException,
ExecutionException
- Throws:
InterruptedException
ExecutionException
testFutureTimeout0
public void testFutureTimeout0()
throws InterruptedException,
ExecutionException
- Throws:
InterruptedException
ExecutionException
testFutureTimeout100
public void testFutureTimeout100()
throws InterruptedException,
ExecutionException
- Throws:
InterruptedException
ExecutionException
testFutureTimeout
private void testFutureTimeout(long timeout,
TimeUnit unit)
throws InterruptedException,
ExecutionException
- Throws:
InterruptedException
ExecutionException
testSynchronousFuture
public void testSynchronousFuture()
testFutureInterrupt
public void testFutureInterrupt()
throws ExecutionException,
InterruptedException
- Throws:
ExecutionException
InterruptedException
testFutureException
public void testFutureException()
throws InterruptedException
- Throws:
InterruptedException
testFutureCancellation
public void testFutureCancellation()
throws InterruptedException,
ExecutionException
- Throws:
InterruptedException
ExecutionException
testCancelWithInterrupt
public void testCancelWithInterrupt()
throws InterruptedException,
ExecutionException
- Throws:
InterruptedException
ExecutionException
testSoftCancel
public void testSoftCancel()
throws InterruptedException,
ExecutionException
- Throws:
InterruptedException
ExecutionException
testCancelBeforeStart
public void testCancelBeforeStart()
throws InterruptedException,
ExecutionException
- Throws:
InterruptedException
ExecutionException
testVoidCall
public void testVoidCall()
throws InterruptedException,
ExecutionException
- Throws:
InterruptedException
ExecutionException
Copyright 2009-2011 Tom Landon
Apache License 2.0