Package jadex.base.test.impl
Class ComponentStartTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- jadex.base.test.impl.ComponentTestBase
-
- jadex.base.test.impl.ComponentTest
-
- jadex.base.test.impl.ComponentStartTest
-
- All Implemented Interfaces:
junit.framework.Test
public class ComponentStartTest extends ComponentTest
Test if a component can be started.
-
-
Constructor Summary
Constructors Constructor Description ComponentStartTest()
ComponentStartTest(IExternalAccess platform, IModelInfo comp, IAbortableTestSuite suite)
Create a component test.
-
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 ridjava.lang.String
toString()
Get a string representation of this test.-
Methods inherited from class jadex.base.test.impl.ComponentTest
createPlatform, getName
-
Methods inherited from class jadex.base.test.impl.ComponentTestBase
countTestCases, getTimeout, runBare
-
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
-
ComponentStartTest
public ComponentStartTest()
-
ComponentStartTest
public ComponentStartTest(IExternalAccess platform, IModelInfo 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 classComponentTest
-
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
-
-