org.curjent.test.agent
Class AgentTest
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
agent
private TestAgent agent
config
AgentConfig config
stats
AgentStats stats
failed
AtomicInteger failed
AgentTest
public AgentTest()
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