Class 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.
      • Fields inherited from class jadex.base.test.impl.ComponentTestLazyPlatform

        comp, conf, filename, platform, rid, suite, timeout
    • 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 platform
      protected 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RemoteTestBaseAgent

        public RemoteTestBaseAgent()
    • 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.