org.curjent.test.agent
Class ConfigTest

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

public class ConfigTest
extends AgentTest

Unit tests for AgentConfig. See CapacityTest for additional tests. The ConfigTestAgent is used to verify settings are retrieved correctly from a different thread context.


Nested Class Summary
(package private) static interface ConfigTest.ConfigTestAgent
           
(package private)  class ConfigTest.ConfigTestTask
           
 
Nested classes/interfaces inherited from class org.curjent.test.agent.AgentTest
AgentTest.Context
 
Field Summary
(package private)  ConfigTest.ConfigTestAgent agent
           
 
Fields inherited from class org.curjent.test.agent.AgentTest
config, failed, stats
 
Constructor Summary
ConfigTest()
           
 
Method Summary
protected  TestAgent newTestAgent()
           
 void testDataConfig()
           
 void testDeadlockConfig()
           
 void testExceptionHandlerConfig()
           
 void testExecutorConfig()
           
 void testListenerConfig()
           
 void testNewInstanceParams()
           
private static void validate(AtomicInteger[] values, int a, int b, int c, int d)
           
 
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

ConfigTest.ConfigTestAgent agent
Constructor Detail

ConfigTest

public ConfigTest()
Method Detail

newTestAgent

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

testNewInstanceParams

public void testNewInstanceParams()

testDeadlockConfig

public void testDeadlockConfig()

testExecutorConfig

public void testExecutorConfig()

testExceptionHandlerConfig

public void testExceptionHandlerConfig()

testListenerConfig

public void testListenerConfig()

validate

private static void validate(AtomicInteger[] values,
                             int a,
                             int b,
                             int c,
                             int d)

testDataConfig

public void testDataConfig()


Copyright 2009-2011 Tom Landon
Apache License 2.0