org.curjent.test.agent
Class AgentTest

java.lang.Object
  extended by org.curjent.test.agent.AgentTest
Direct Known Subclasses:
AgentAwaitTest, AgentCallTest, AgentMarkTest, CallSiteTest, CapacityTest, ConfigLockTest, ConfigTest, DeadlockTest, ExpirationTest, FutureTest, InsiderTest, InterruptTest, ListenerTest, MultiTaskTest, ProxyTest, ReentrantTest

public abstract class AgentTest
extends Object

Base class for agent test cases.


Nested Class Summary
(package private) static class AgentTest.Context
           
 
Field Summary
private  TestAgent agent
           
(package private)  AgentConfig config
           
(package private)  AtomicInteger failed
           
(package private)  AgentStats stats
           
 
Constructor Summary
AgentTest()
           
 
Method Summary
protected  void flush(Object agent)
           
protected  void log(Object o)
           
protected abstract  TestAgent newTestAgent()
           
 void setUp()
           
protected  void setUp(AgentTest.Context context)
           
protected  AgentTest.Context setUp(TestAgent agent)
           
protected  void sleep(long millis)
           
protected  AgentStats stats()
           
 void tearDown()
           
protected  void tearDown(AgentTest.Context context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agent

private TestAgent agent

config

AgentConfig config

stats

AgentStats stats

failed

AtomicInteger failed
Constructor Detail

AgentTest

public AgentTest()
Method Detail

newTestAgent

protected abstract TestAgent newTestAgent()

setUp

public void setUp()

setUp

protected AgentTest.Context setUp(TestAgent agent)

setUp

protected void setUp(AgentTest.Context context)

tearDown

public void tearDown()

tearDown

protected void tearDown(AgentTest.Context context)

flush

protected void flush(Object agent)

stats

protected AgentStats stats()

sleep

protected void sleep(long millis)

log

protected void log(Object o)


Copyright 2009-2011 Tom Landon
Apache License 2.0