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 SummaryNested Classes Modifier and Type Class Description classTestCenterPanel.TestSuite.TestResultListenerCallback result listener for (local or remote) test results.
 - 
Field SummaryFields 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 SummaryConstructors Constructor Description TestSuite(Tuple2<java.lang.String,IResourceIdentifier>[] names)Create a new test suite for the given test cases.
 - 
Method SummaryAll 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- 
namesprotected Tuple2<java.lang.String,IResourceIdentifier>[] names The names of the testcases.
 - 
resultsprotected Testcase[] results The results of the testcases.
 - 
testcasesprotected java.util.Map<Tuple2<java.lang.String,IResourceIdentifier>,IComponentIdentifier> testcases A set of running testcases to be destroyed on abort (name->cid).
 - 
runningprotected boolean running Flag indicating that the test suite is running.
 - 
abortedprotected boolean aborted Flag indicating that the test suite has been aborted.
 - 
starttimeprotected long starttime The timepoint when the test execution was started.
 
- 
 - 
Constructor Detail- 
TestSuitepublic TestSuite(Tuple2<java.lang.String,IResourceIdentifier>[] names) Create a new test suite for the given test cases.
 
- 
 - 
Method Detail- 
isRunningpublic boolean isRunning() Check if the test suite is running.
 - 
isAbortedpublic boolean isAborted() Check if the test suite has been aborted.
 - 
getTestcaseNamespublic Tuple2<java.lang.String,IResourceIdentifier>[] getTestcaseNames() Get the testcase names array.
 - 
getTestcasespublic Testcase[] getTestcases() Get the testcase array. Same size as names array, but some entries may be null if not yet performed.
 - 
getStartTimepublic long getStartTime() Get the start time.
 - 
startpublic void start() Start the execution of the test suite.
 - 
abortpublic void abort() Abort the execution of the test suite.
 - 
startNextTestcasesprotected void startNextTestcases() Start the next testcases (if any).
 - 
abortTestcaseprotected IFuture<java.lang.Void> abortTestcase(IComponentIdentifier testcase) Abort a testcase.
 
- 
 
-