Package jadex.base.test.impl
Class ComponentTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- jadex.base.test.impl.ComponentTestBase
-
- jadex.base.test.impl.ComponentTest
-
- All Implemented Interfaces:
junit.framework.Test
- Direct Known Subclasses:
ComponentStartTest
public class ComponentTest extends ComponentTestBase
Test a component.
-
-
Constructor Summary
Constructors Constructor Description ComponentTest()
Create a new ComponentTest.ComponentTest(IPlatformConfiguration conf, java.lang.String[] args, java.io.File[][] dirs, IExternalAccess platform, IModelInfo comp, IAbortableTestSuite suite)
Create a component test.ComponentTest(IExternalAccess platform, IModelInfo comp, IAbortableTestSuite suite)
Create a component test.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IExternalAccess
createPlatform()
Create a new platform (only if conf is given and thus platform per test is enabled)java.lang.String
getName()
java.lang.String
toString()
Get a string representation of this test.-
Methods inherited from class jadex.base.test.impl.ComponentTestBase
checkTestResults, componentStarted, 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
-
-
-
-
Field Detail
-
args
protected java.lang.String[] args
Additional config args.
-
dirs
protected java.io.File[][] dirs
The dirs for rids (e.g. classes and resources dirs).
-
fullname
protected java.lang.String fullname
The component full name.
-
type
protected java.lang.String type
The component (kernel) type.
-
-
Constructor Detail
-
ComponentTest
public ComponentTest()
Create a new ComponentTest.
-
ComponentTest
public ComponentTest(IExternalAccess platform, IModelInfo comp, IAbortableTestSuite suite)
Create a component test. Run on existing test suite platform.- Parameters:
cms
- The CMS of the test suite platform.
-
ComponentTest
public ComponentTest(IPlatformConfiguration conf, java.lang.String[] args, java.io.File[][] dirs, IExternalAccess platform, IModelInfo comp, IAbortableTestSuite suite)
Create a component test. Run on separate platform.- Parameters:
conf
- The config for the new platform.
-
-
Method Detail
-
createPlatform
protected IExternalAccess createPlatform()
Create a new platform (only if conf is given and thus platform per test is enabled)- Overrides:
createPlatform
in classComponentTestBase
-
getName
public java.lang.String getName()
- Overrides:
getName
in classjunit.framework.TestCase
-
toString
public java.lang.String toString()
Get a string representation of this test.- Overrides:
toString
in classjunit.framework.TestCase
-
-