fipaos.test.agent
Class AgentTestFramework

|
+--fipaos.test.agent.AgentTestFramework
Direct Known Subclasses:
AMSAgentTest, DFSubscriptionTest

public abstract class AgentTestFramework
extends TestCase

Test-framework for testing an Agent at the ACL level


Constructor Summary
AgentTestFramework(String name)
          Creates new AgentTestFramework

Method Summary
 static StringfindAndReplace(String str, String find, String replace)
          Replaces all occurences of a String with another String within a String
 static AgentProfilegetAgentProfile()
          Returns a bog-standard AgentProfile
 PlatformProfilegetPlatformProfile()
          Returns a bog-standard PlatformProfile
 static PlatformProfilegetPlatformProfile(String hap)
          Returns a PlatformProfile for the given platform

Constructor Detail

AgentTestFramework

public AgentTestFramework(String name)
Creates new AgentTestFramework
Method Detail

findAndReplace

public static String findAndReplace(String str, String find, String replace)
Replaces all occurences of a String with another String within a String
Parameters:
str - String to modify
find - String to find
replace - String to replace found occurences with
Returns: The modified String

getAgentProfile

public static AgentProfile getAgentProfile()
Returns a bog-standard AgentProfile

getPlatformProfile

public PlatformProfile getPlatformProfile()
Returns a bog-standard PlatformProfile

getPlatformProfile

public static PlatformProfile getPlatformProfile(String hap)
Returns a PlatformProfile for the given platform

Association Links

to Class fipaos.agent.profile.AgentProfile

AgentProfile to be used by Agents

to Class fipaos.agent.profile.PlatformProfile

PlatformProfile to be used by Agents

to Class java.util.List

Other Agents that this Agent depends upon