Package com.sun.javatest
Interface Parameters.MutableTestsParameters
- All Superinterfaces:
Parameters.TestsParameters
- All Known Implementing Classes:
BasicParameters
,FileParameters
,TestsInterview
- Enclosing interface:
Parameters
An interface providing abstract access to a set of paths
defining the tests and folders of tests to be run.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
A constant used to indicate that all tests in the test suite should be run.static final int
A constant used to indicate that specified tests in the test suite should be run. -
Method Summary
Modifier and TypeMethodDescriptionString[]
Get the set of specified tests to be used as the set of tests to be run when the mode is set to SPECIFIED_TESTS.int
Get the current mode for how the tests are specified.void
setSpecifiedTests
(String... tests) Set the specified tests to be be run when the mode is set to SPECIFIED_TESTS.void
Specify the tests to be executed.void
setTestsMode
(int mode) Set the current mode for how the tests are specified.Methods inherited from interface com.sun.javatest.Parameters.TestsParameters
getTests
-
Field Details
-
ALL_TESTS
static final int ALL_TESTSA constant used to indicate that all tests in the test suite should be run.- See Also:
-
SPECIFIED_TESTS
static final int SPECIFIED_TESTSA constant used to indicate that specified tests in the test suite should be run.- See Also:
-
-
Method Details
-
setTests
Specify the tests to be executed.- Parameters:
tests
- If null, set the tests mode to ALL_TESTS; if not null, set the tests mode to SPECIFIED_TESTS, and set the specified tests.- See Also:
-
getTestsMode
int getTestsMode()Get the current mode for how the tests are specified.- Returns:
- ALL_TESTS if all tests are to be run, irrespective of the selected tests, or SPECIFIED_TESTS if a set of specified tests are to be run.
- See Also:
-
setTestsMode
void setTestsMode(int mode) Set the current mode for how the tests are specified.- Parameters:
mode
- use ALL_TESTS if all tests are to be run, irrespective of the selected tests, or SPECIFIED_TESTS if a set of specified tests are to be run.- Throws:
IllegalArgumentException
- if neither ALL_TESTS or SPECIFIED_TESTS is given- See Also:
-
getSpecifiedTests
String[] getSpecifiedTests()Get the set of specified tests to be used as the set of tests to be run when the mode is set to SPECIFIED_TESTS. When the mode is set to ALL_TESTS, the specified tests are remembered, but not used, until the mode is set back to SPECIFIED_TESTS.- Returns:
- an array of specified tests to be used as the set of tests to be run when the mode is set to SPECIFIED_TESTS.
- See Also:
-
setSpecifiedTests
Set the specified tests to be be run when the mode is set to SPECIFIED_TESTS. When the mode is set to ALL_TESTS, these tests are remembered, but not used, until the mode is set back to SPECIFIED_TESTS.- Parameters:
tests
- an array of paths identifying the tests to be run- See Also:
-