com.sun.javatest
public static interface Parameters.MutableTestsParameters extends Parameters.TestsParameters
Modifier and Type | Field and Description |
---|---|
static int |
ALL_TESTS
A constant used to indicate that all tests in the test
suite should be run.
|
static int |
SPECIFIED_TESTS
A constant used to indicate that specified tests in the test
suite should be run.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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.
|
int |
getTestsMode()
Get the current mode for how the tests are specified.
|
void |
setSpecifiedTests(java.lang.String[] tests)
Set the specified tests to be be run when the mode is set to SPECIFIED_TESTS.
|
void |
setTests(java.lang.String[] tests)
Specify the tests to be executed.
|
void |
setTestsMode(int mode)
Set the current mode for how the tests are specified.
|
getTests
static final int ALL_TESTS
static final int SPECIFIED_TESTS
void setTests(java.lang.String[] tests)
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.Parameters.TestsParameters.getTests()
int getTestsMode()
setTestsMode(int)
,
ALL_TESTS
,
SPECIFIED_TESTS
void setTestsMode(int mode)
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.java.lang.IllegalArgumentException
- if neither ALL_TESTS or SPECIFIED_TESTS
is givengetTestsMode()
,
ALL_TESTS
,
SPECIFIED_TESTS
java.lang.String[] getSpecifiedTests()
setSpecifiedTests(java.lang.String[])
,
Parameters.TestsParameters.getTests()
void setSpecifiedTests(java.lang.String[] tests)
tests
- an array of paths identifying the tests to be rungetSpecifiedTests()
,
Parameters.TestsParameters.getTests()
Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.