fipaos.test.platform
Class AMSAgentTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--fipaos.test.agent.AgentTestFramework
                    |
                    +--fipaos.test.platform.AMSAgentTest
All Implemented Interfaces:
junit.framework.Test

public class AMSAgentTest
extends AgentTestFramework

Test-harness for the AMS


Field Summary
 java.lang.String DEREGISTRATION_MSG
           
 java.lang.String MODIFICATION_MSG
           
 java.lang.String REGISTRATION_MSG
          Standard test messages
 
Constructor Summary
AMSAgentTest(java.lang.String name)
          Creates new AMSAgentTest
 
Method Summary
protected  java.lang.String getAPName()
          Get the name of the AP
protected  java.lang.String getTestAgentName()
          Get the name of the test-agent
protected  void runTest()
          Overrides method in parent to enable running of our tests
protected  void setUp()
          Override - start-up method to start our test Agent
 
Methods inherited from class fipaos.test.agent.AgentTestFramework
findAndReplace, getAgentProfile, getAID, getIncomingMessage, getPlatformProfile, sendMessage, startAgent, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REGISTRATION_MSG

public final java.lang.String REGISTRATION_MSG
Standard test messages

DEREGISTRATION_MSG

public final java.lang.String DEREGISTRATION_MSG

MODIFICATION_MSG

public final java.lang.String MODIFICATION_MSG
Constructor Detail

AMSAgentTest

public AMSAgentTest(java.lang.String name)
Creates new AMSAgentTest
Method Detail

setUp

protected void setUp()
Override - start-up method to start our test Agent
Overrides:
setUp in class AgentTestFramework

runTest

protected void runTest()
                throws java.lang.Throwable
Overrides method in parent to enable running of our tests
Overrides:
runTest in class junit.framework.TestCase

getAPName

protected java.lang.String getAPName()
Description copied from class: AgentTestFramework
Get the name of the AP
Overrides:
getAPName in class AgentTestFramework

getTestAgentName

protected java.lang.String getTestAgentName()
Description copied from class: AgentTestFramework
Get the name of the test-agent
Overrides:
getTestAgentName in class AgentTestFramework