public abstract class TestAgent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IInternalAccess |
agent |
protected java.util.Set<jadex.bridge.IExternalAccess> |
platforms |
Constructor and Description |
---|
TestAgent() |
Modifier and Type | Method and Description |
---|---|
jadex.commons.future.IFuture<java.lang.Void> |
body()
The agent body.
|
jadex.commons.future.IFuture<java.lang.Void> |
cleanup()
Cleanup created platforms.
|
protected jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> |
createComponent(java.lang.String filename,
jadex.bridge.IComponentIdentifier root,
jadex.commons.future.IResultListener<java.util.Collection<jadex.commons.Tuple2<java.lang.String,java.lang.Object>>> reslis) |
protected jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> |
createComponent(java.lang.String filename,
java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.String config,
jadex.bridge.IComponentIdentifier root,
jadex.commons.future.IResultListener<java.util.Collection<jadex.commons.Tuple2<java.lang.String,java.lang.Object>>> reslis) |
protected jadex.commons.future.IFuture<jadex.bridge.IExternalAccess> |
createPlatform(java.lang.String[] args) |
protected jadex.commons.future.IFuture<java.util.Map<java.lang.String,java.lang.Object>> |
destroyComponent(jadex.bridge.IComponentIdentifier cid) |
protected int |
getTestCount()
The test count.
|
protected jadex.commons.future.IFuture<java.lang.Void> |
performTests(jadex.base.test.Testcase tc)
The agent body.
|
protected jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> |
setupLocalTest(java.lang.String filename,
jadex.commons.future.IResultListener<java.util.Collection<jadex.commons.Tuple2<java.lang.String,java.lang.Object>>> reslis)
Setup a local test.
|
protected jadex.commons.future.IFuture<jadex.bridge.IExternalAccess> |
setupRemotePlatform(boolean manualremove)
Setup a remote test.
|
protected jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> |
setupRemoteTest(java.lang.String filename,
java.lang.String config,
jadex.commons.future.IResultListener<java.util.Collection<jadex.commons.Tuple2<java.lang.String,java.lang.Object>>> reslis,
boolean remove)
Setup a remote test.
|
protected jadex.commons.future.IFuture<jadex.base.test.TestReport> |
test(jadex.bridge.service.types.cms.IComponentManagementService cms,
boolean local)
Perform the test.
|
<T> jadex.commons.future.IFuture<T> |
waitForRealtimeDelay(long delay,
jadex.bridge.IComponentStep<T> step) |
protected jadex.bridge.IInternalAccess agent
protected java.util.Set<jadex.bridge.IExternalAccess> platforms
public jadex.commons.future.IFuture<java.lang.Void> cleanup()
public jadex.commons.future.IFuture<java.lang.Void> body()
protected jadex.commons.future.IFuture<java.lang.Void> performTests(jadex.base.test.Testcase tc)
protected int getTestCount()
protected jadex.commons.future.IFuture<jadex.bridge.IExternalAccess> createPlatform(java.lang.String[] args)
protected jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> createComponent(java.lang.String filename, jadex.bridge.IComponentIdentifier root, jadex.commons.future.IResultListener<java.util.Collection<jadex.commons.Tuple2<java.lang.String,java.lang.Object>>> reslis)
protected jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> createComponent(java.lang.String filename, java.util.Map<java.lang.String,java.lang.Object> args, java.lang.String config, jadex.bridge.IComponentIdentifier root, jadex.commons.future.IResultListener<java.util.Collection<jadex.commons.Tuple2<java.lang.String,java.lang.Object>>> reslis)
protected jadex.commons.future.IFuture<java.util.Map<java.lang.String,java.lang.Object>> destroyComponent(jadex.bridge.IComponentIdentifier cid)
protected jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> setupLocalTest(java.lang.String filename, jadex.commons.future.IResultListener<java.util.Collection<jadex.commons.Tuple2<java.lang.String,java.lang.Object>>> reslis)
protected jadex.commons.future.IFuture<jadex.bridge.IComponentIdentifier> setupRemoteTest(java.lang.String filename, java.lang.String config, jadex.commons.future.IResultListener<java.util.Collection<jadex.commons.Tuple2<java.lang.String,java.lang.Object>>> reslis, boolean remove)
protected jadex.commons.future.IFuture<jadex.bridge.IExternalAccess> setupRemotePlatform(boolean manualremove)
public <T> jadex.commons.future.IFuture<T> waitForRealtimeDelay(long delay, jadex.bridge.IComponentStep<T> step)
protected jadex.commons.future.IFuture<jadex.base.test.TestReport> test(jadex.bridge.service.types.cms.IComponentManagementService cms, boolean local)
cms
- The cms of the platform to test (local or remote).local
- True when tests runs on local platform.