Class ComponentStartTestLazyPlatform

  • All Implemented Interfaces:
    junit.framework.Test

    public class ComponentStartTestLazyPlatform
    extends ComponentTestLazyPlatform
    Test if a component can be started. This version does not need a Platform on instantiation, but rather later, before tests are started.
    • Method Summary

      All 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.
      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.
    • Constructor Detail

      • ComponentStartTestLazyPlatform

        public ComponentStartTestLazyPlatform()
      • ComponentStartTestLazyPlatform

        public ComponentStartTestLazyPlatform​(java.lang.String comp,
                                              IAbortableTestSuite suite)
        Create a component test.
    • 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 junit.framework.TestCase