org.curjent.test.agent
Class MultiTaskTest

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

public class MultiTaskTest
extends AgentTest

Tests agents with multiple tasks.


Nested Class Summary
static interface MultiTaskTest.MultiAgent
           
static class MultiTaskTest.MultiTask
           
 
Nested classes/interfaces inherited from class org.curjent.test.agent.AgentTest
AgentTest.Context
 
Field Summary
(package private)  MultiTaskTest.MultiAgent agent
           
(package private) static int agentTasks
           
private static int TASK_COUNT
           
 
Fields inherited from class org.curjent.test.agent.AgentTest
config, failed, stats
 
Constructor Summary
MultiTaskTest()
           
 
Method Summary
(package private) static AgentTasks getTasks()
           
protected  TestAgent newTestAgent()
           
 void testIsolated()
           
 void testLeading()
           
 void testMarker()
           
 void testMultipleThreads()
           
 
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

TASK_COUNT

private static final int TASK_COUNT
See Also:
Constant Field Values

agent

MultiTaskTest.MultiAgent agent

agentTasks

static int agentTasks
Constructor Detail

MultiTaskTest

public MultiTaskTest()
Method Detail

newTestAgent

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

getTasks

static AgentTasks getTasks()

testMultipleThreads

public void testMultipleThreads()
                         throws InterruptedException
Throws:
InterruptedException

testMarker

public void testMarker()

testLeading

public void testLeading()
                 throws InterruptedException
Throws:
InterruptedException

testIsolated

public void testIsolated()


Copyright 2009-2011 Tom Landon
Apache License 2.0