Package jadex.micro.testcases
Class RemoteTestBaseAgent
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- jadex.base.test.impl.ComponentTestLazyPlatform
-
- jadex.base.test.impl.JunitAgentTest
-
- jadex.micro.testcases.RemoteTestBaseAgent
-
- All Implemented Interfaces:
junit.framework.Test
- Direct Known Subclasses:
TestAgent
public class RemoteTestBaseAgent extends jadex.base.test.impl.JunitAgentTest
Base class for test agents using remote platforms. Provides proxy creation and cleanup.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<IComponentIdentifier>
proxies
The proxies, if any.
-
Constructor Summary
Constructors Constructor Description RemoteTestBaseAgent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>
cleanup()
Cleanup created proxies.protected IFuture<java.lang.Void>
createProxies(IExternalAccess remote)
Create proxies to connect local and remote platformprotected IFuture<java.lang.Void>
disableLocalSimulationMode()
Enables an agent to disable simulation mode on its platform.protected static IFuture<java.lang.Void>
disableLocalSimulationMode(IInternalAccess agent)
Enables an agent to disable simulation mode on its platform.-
Methods inherited from class jadex.base.test.impl.JunitAgentTest
getConfig, runBare, setConfig, testComponent
-
Methods inherited from class jadex.base.test.impl.ComponentTestLazyPlatform
checkTestResults, componentStarted, countTestCases, getName, getTimeout, setPlatform, toString
-
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, run, run, runTest, setName, setUp, tearDown
-
-
-
-
Field Detail
-
proxies
protected java.util.Set<IComponentIdentifier> proxies
The proxies, if any.
-
-
Method Detail
-
cleanup
public IFuture<java.lang.Void> cleanup()
Cleanup created proxies.
-
createProxies
protected IFuture<java.lang.Void> createProxies(IExternalAccess remote)
Create proxies to connect local and remote platform- Parameters:
remote
- external access of a remote platform (or agent).
-
disableLocalSimulationMode
protected IFuture<java.lang.Void> disableLocalSimulationMode()
Enables an agent to disable simulation mode on its platform.- Returns:
- Null, when done.
-
disableLocalSimulationMode
protected static final IFuture<java.lang.Void> disableLocalSimulationMode(IInternalAccess agent)
Enables an agent to disable simulation mode on its platform.- Returns:
- Null, when done.
-
-