Package jadex.base.test.impl
Class ComponentStartTestLazyPlatform
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- jadex.base.test.impl.ComponentTestBase
-
- jadex.base.test.impl.ComponentTestLazyPlatform
-
- jadex.base.test.impl.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.
-
-
Field Summary
Fields Modifier and Type Field Description long
delay
The delay after which the started component is stopped again.-
Fields inherited from class jadex.base.test.impl.ComponentTestLazyPlatform
comp
-
-
Constructor Summary
Constructors Constructor Description ComponentStartTestLazyPlatform()
ComponentStartTestLazyPlatform(java.lang.String comp, IAbortableTestSuite suite)
Create a component test.
-
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 jadex.base.test.impl.ComponentTestLazyPlatform
getName, runBare, setPlatform
-
Methods inherited from class jadex.base.test.impl.ComponentTestBase
countTestCases, createPlatform, getTimeout
-
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
-
-
-
-
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 classComponentTestBase
- 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 classComponentTestBase
- Parameters:
res
- The results.
-
toString
public java.lang.String toString()
Get a string representation of this test.- Overrides:
toString
in classjunit.framework.TestCase
-
-