org.curjent.test.agent
Class AgentCallTest

java.lang.Object
  extended by org.curjent.test.agent.AgentTest
      extended by org.curjent.test.agent.AgentCallTest

public class AgentCallTest
extends AgentTest

Tests for AgentCall from asynchronous calls.


Nested Class Summary
(package private) static interface AgentCallTest.AgentCallTestAgent
           
(package private) static class AgentCallTest.AgentCallTestTask
           
 
Nested classes/interfaces inherited from class org.curjent.test.agent.AgentTest
AgentTest.Context
 
Field Summary
(package private)  AgentCallTest.AgentCallTestAgent agent
           
 
Fields inherited from class org.curjent.test.agent.AgentTest
config, failed, stats
 
Constructor Summary
AgentCallTest()
           
 
Method Summary
private  AgentCall<?> cast(AgentCall<?> call)
           
protected  TestAgent newTestAgent()
           
 void testAgentResult()
           
 void testAwaitTimeout()
           
 void testCall()
           
 void testCallSite()
           
 void testData()
           
 void testFinish()
           
 void testFinishBadResult()
           
 void testFinishException()
           
 void testFinishInterrupt()
           
 void testFinishSimple()
           
 void testFinishSimpleException()
           
 void testFinishSimpleResult()
           
 void testListener()
           
 void testListenerFinished()
           
 void testRun()
           
 void testSetArgument()
           
 void testSetResult()
           
 void testThisCall()
           
 
Methods inherited from class org.curjent.test.agent.AgentTest
flush, log, setUp, setUp, setUp, sleep, stats, tearDown, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agent

AgentCallTest.AgentCallTestAgent agent
Constructor Detail

AgentCallTest

public AgentCallTest()
Method Detail

newTestAgent

protected TestAgent newTestAgent()
Specified by:
newTestAgent in class AgentTest

cast

private AgentCall<?> cast(AgentCall<?> call)

testCall

public void testCall()
              throws InterruptedException,
                     ExecutionException
Throws:
InterruptedException
ExecutionException

testSetArgument

public void testSetArgument()
                     throws InterruptedException,
                            ExecutionException
Throws:
InterruptedException
ExecutionException

testSetResult

public void testSetResult()
                   throws InterruptedException,
                          ExecutionException
Throws:
InterruptedException
ExecutionException

testFinish

public void testFinish()
                throws InterruptedException
Throws:
InterruptedException

testFinishSimple

public void testFinishSimple()

testFinishSimpleResult

public void testFinishSimpleResult()

testFinishSimpleException

public void testFinishSimpleException()

testFinishException

public void testFinishException()
                         throws InterruptedException
Throws:
InterruptedException

testFinishInterrupt

public void testFinishInterrupt()
                         throws InterruptedException
Throws:
InterruptedException

testFinishBadResult

public void testFinishBadResult()

testAwaitTimeout

public void testAwaitTimeout()
                      throws InterruptedException
Throws:
InterruptedException

testListener

public void testListener()
                  throws InterruptedException
Throws:
InterruptedException

testListenerFinished

public void testListenerFinished()
                          throws InterruptedException
Throws:
InterruptedException

testRun

public void testRun()

testData

public void testData()
              throws InterruptedException
Throws:
InterruptedException

testCallSite

public void testCallSite()

testThisCall

public void testThisCall()

testAgentResult

public void testAgentResult()
                     throws InterruptedException,
                            ExecutionException
Throws:
InterruptedException
ExecutionException


Copyright 2009-2011 Tom Landon
Apache License 2.0