Package com.sun.javatest
Class DefaultTestRunner2
- java.lang.Object
-
- com.sun.javatest.TestRunner
-
- com.sun.javatest.DefaultTestRunner
-
- com.sun.javatest.DefaultTestRunner2
-
@Deprecated public class DefaultTestRunner2 extends DefaultTestRunner
Deprecated.Concurrent implementation of test execution engine based on java.util.concurrent APIs to run tests effectively using a fixed thread pool. Inheriting default test runner's implementation of running a single test. THIS IS YET AN EXPERIMENTAL IMPLEMENTATION - USE AT YOUR OWN RISK
-
-
Constructor Summary
Constructors Constructor Description DefaultTestRunner2()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
runTests(java.util.Iterator<TestDescription> testIter)
Deprecated.Run the tests obtained from an iterator.-
Methods inherited from class com.sun.javatest.DefaultTestRunner
runTest
-
Methods inherited from class com.sun.javatest.TestRunner
getBackupPolicy, getConcurrency, getEnvironment, getExcludedTestCases, getExcludeList, getTestSuite, getWorkDirectory, notifyFinishedTest, notifyStartingTest
-
-
-
-
Method Detail
-
runTests
public boolean runTests(java.util.Iterator<TestDescription> testIter) throws java.lang.InterruptedException
Deprecated.Description copied from class:TestRunner
Run the tests obtained from an iterator. The iterator returns TestDescription objects for the tests that have been selected to be run. The iterator supports the standard hasNext() and next() methods; it does not support remove(), which throws UnsupportedOperationException. Each test description gives the details of the test to be run. As each test is started, the implementation of this method must create a new TestResult object and callTestRunner.notifyStartingTest(com.sun.javatest.TestResult)
. When the test completes (however it completes) the implementation of this method must callTestRunner.notifyFinishedTest(com.sun.javatest.TestResult)
.- Overrides:
runTests
in classDefaultTestRunner
- Parameters:
testIter
- the iterator to be used to obtain the tests to be run- Returns:
- true if and only if all the tests executed successfully and passed
- Throws:
java.lang.InterruptedException
- if the test run was interrupted
-
-