Package jadex.tools.testcenter
Class TestCenterPanel.TestSuite
- java.lang.Object
-
- jadex.tools.testcenter.TestCenterPanel.TestSuite
-
- Enclosing class:
- TestCenterPanel
public class TestCenterPanel.TestSuite extends java.lang.ObjectObject for controlling test suite execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classTestCenterPanel.TestSuite.TestResultListenerCallback result listener for (local or remote) test results.
-
Field Summary
Fields Modifier and Type Field Description protected booleanabortedFlag indicating that the test suite has been aborted.protected Tuple2<java.lang.String,IResourceIdentifier>[]namesThe names of the testcases.protected Testcase[]resultsThe results of the testcases.protected booleanrunningFlag indicating that the test suite is running.protected longstarttimeThe timepoint when the test execution was started.protected java.util.Map<Tuple2<java.lang.String,IResourceIdentifier>,IComponentIdentifier>testcasesA set of running testcases to be destroyed on abort (name->cid).
-
Constructor Summary
Constructors Constructor Description TestSuite(Tuple2<java.lang.String,IResourceIdentifier>[] names)Create a new test suite for the given test cases.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()Abort the execution of the test suite.protected IFuture<java.lang.Void>abortTestcase(IComponentIdentifier testcase)Abort a testcase.longgetStartTime()Get the start time.Tuple2<java.lang.String,IResourceIdentifier>[]getTestcaseNames()Get the testcase names array.Testcase[]getTestcases()Get the testcase array.booleanisAborted()Check if the test suite has been aborted.booleanisRunning()Check if the test suite is running.voidstart()Start the execution of the test suite.protected voidstartNextTestcases()Start the next testcases (if any).
-
-
-
Field Detail
-
names
protected Tuple2<java.lang.String,IResourceIdentifier>[] names
The names of the testcases.
-
results
protected Testcase[] results
The results of the testcases.
-
testcases
protected java.util.Map<Tuple2<java.lang.String,IResourceIdentifier>,IComponentIdentifier> testcases
A set of running testcases to be destroyed on abort (name->cid).
-
running
protected boolean running
Flag indicating that the test suite is running.
-
aborted
protected boolean aborted
Flag indicating that the test suite has been aborted.
-
starttime
protected long starttime
The timepoint when the test execution was started.
-
-
Constructor Detail
-
TestSuite
public TestSuite(Tuple2<java.lang.String,IResourceIdentifier>[] names)
Create a new test suite for the given test cases.
-
-
Method Detail
-
isRunning
public boolean isRunning()
Check if the test suite is running.
-
isAborted
public boolean isAborted()
Check if the test suite has been aborted.
-
getTestcaseNames
public Tuple2<java.lang.String,IResourceIdentifier>[] getTestcaseNames()
Get the testcase names array.
-
getTestcases
public Testcase[] getTestcases()
Get the testcase array. Same size as names array, but some entries may be null if not yet performed.
-
getStartTime
public long getStartTime()
Get the start time.
-
start
public void start()
Start the execution of the test suite.
-
abort
public void abort()
Abort the execution of the test suite.
-
startNextTestcases
protected void startNextTestcases()
Start the next testcases (if any).
-
abortTestcase
protected IFuture<java.lang.Void> abortTestcase(IComponentIdentifier testcase)
Abort a testcase.
-
-