Class ComponentStartTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class ComponentStartTest
    extends ComponentTest
    Test if a component can be started.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void checkTestResults​(java.util.Map<java.lang.String,​java.lang.Object> res)
      Optional checking after component has finished.
      protected void componentStarted​(jadex.commons.future.IFuture<IExternalAccess> fut)
      Called when a component has been started.
      static void main​(java.lang.String[] args)
      Command line test: start the given agent in the given rid
      java.lang.String toString()
      Get a string representation of this test.
      • 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
    • Field Detail

      • delay

        public long delay
        The delay after which the started component is stopped again.
    • Method Detail

      • componentStarted

        protected void componentStarted​(jadex.commons.future.IFuture<IExternalAccess> fut)
        Called when a component has been started.
        Overrides:
        componentStarted in class ComponentTestBase
        Parameters:
        cid - The cid, set as soon as known.
      • checkTestResults

        protected void checkTestResults​(java.util.Map<java.lang.String,​java.lang.Object> res)
        Optional checking after component has finished.
        Overrides:
        checkTestResults in class ComponentTestBase
        Parameters:
        res - The results.
      • toString

        public java.lang.String toString()
        Get a string representation of this test.
        Overrides:
        toString in class ComponentTest
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Command line test: start the given agent in the given rid
        Parameters:
        args - Two arguments representing the component file name and the rid file name.
        Throws:
        java.io.IOException