org.curjent.test.agent
Class AgentAwaitTest

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

public class AgentAwaitTest
extends AgentTest

Tests for Agent.await(Object, long, TimeUnit) and related methods.


Nested Class Summary
(package private) static interface AgentAwaitTest.AgentAwaitTestAgent
           
(package private)  class AgentAwaitTest.AgentAwaitTestTask
           
 
Nested classes/interfaces inherited from class org.curjent.test.agent.AgentTest
AgentTest.Context
 
Field Summary
(package private)  AgentAwaitTest.AgentAwaitTestAgent agent
           
 
Fields inherited from class org.curjent.test.agent.AgentTest
config, failed, stats
 
Constructor Summary
AgentAwaitTest()
           
 
Method Summary
private  AgentAwaitTest.AgentAwaitTestAgent newAgent()
           
protected  TestAgent newTestAgent()
           
 void testAwait()
           
 void testAwaitParams()
           
 void testDeadlock()
           
 void testInterrupted()
           
 void testMultipleAwaits()
           
 void testParallelAwaits()
           
 void testTimeout()
           
 
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

AgentAwaitTest.AgentAwaitTestAgent agent
Constructor Detail

AgentAwaitTest

public AgentAwaitTest()
Method Detail

newTestAgent

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

newAgent

private AgentAwaitTest.AgentAwaitTestAgent newAgent()

testAwait

public void testAwait()
               throws InterruptedException
Throws:
InterruptedException

testTimeout

public void testTimeout()
                 throws InterruptedException
Throws:
InterruptedException

testMultipleAwaits

public void testMultipleAwaits()
                        throws InterruptedException
Throws:
InterruptedException

testParallelAwaits

public void testParallelAwaits()
                        throws InterruptedException
Throws:
InterruptedException

testAwaitParams

public void testAwaitParams()
                     throws InterruptedException
Throws:
InterruptedException

testInterrupted

public void testInterrupted()

testDeadlock

public void testDeadlock()


Copyright 2009-2011 Tom Landon
Apache License 2.0