public abstract class BasicParameters extends java.lang.Object implements Parameters, Parameters.MutableTestsParameters, Parameters.MutableExcludeListParameters, Parameters.MutableKeywordsParameters, Parameters.MutablePriorStatusParameters, Parameters.MutableConcurrencyParameters, Parameters.MutableTimeoutFactorParameters
Parameters.ConcurrencyParameters, Parameters.EnvParameters, Parameters.ExcludeListParameters, Parameters.KeywordsParameters, Parameters.LegacyEnvParameters, Parameters.MutableConcurrencyParameters, Parameters.MutableExcludeListParameters, Parameters.MutableKeywordsParameters, Parameters.MutablePriorStatusParameters, Parameters.MutableTestsParameters, Parameters.MutableTimeoutFactorParameters, Parameters.PriorStatusParameters, Parameters.TestsParameters, Parameters.TimeoutFactorParameters
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
concurrencyError
A string to identify any errors that may have occurred when
setting the concurrency, or null if there were no such errors.
|
protected java.lang.String |
excludeListError
A string to identify any errors that may have occurred when
setting the exclude list parameters, or null if there were no such errors.
|
protected java.lang.String |
keywordsError
A string to identify any errors that may have occurred when
setting the keywords parameters, or null if there were no such errors.
|
protected java.lang.String |
testSuiteError
A string to identify any errors that may have occurred when
setting the test suite, or null if there were no such errors.
|
protected java.lang.String |
timeoutFactorError
A string to identify any errors that may have occurred when
setting the timeout factor, or null if there were no such errors.
|
protected java.lang.String |
workDirError
A string to identify any errors that may have occurred when
setting the work directory, or null if there were no such errors.
|
ALL_TESTS, SPECIFIED_TESTS
CHECK_EVERY_RUN, CHECK_EVERY_X_DAYS, CUSTOM_EXCLUDE_LIST, INITIAL_EXCLUDE_LIST, LATEST_EXCLUDE_LIST, NO_EXCLUDE_LIST
ALL_OF, ANY_OF, EXPR, MATCH_KEYWORDS, NO_KEYWORDS
MATCH_PRIOR_STATUS, NO_PRIOR_STATUS
MAX_CONCURRENCY, MIN_CONCURRENCY
MAX_TIMEOUT_FACTOR, MIN_TIMEOUT_FACTOR
Constructor and Description |
---|
BasicParameters() |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
equal(boolean[] b1,
boolean[] b2)
Compare two boolean arrays for equality.
|
protected static boolean |
equal(java.io.File[] f1,
java.io.File[] f2)
Compare two arrays of Files for equality.
|
protected static java.io.File[] |
getAbsoluteFiles(java.io.File baseDir,
java.io.File[] files)
Convert a set of files to be absolute files.
|
int |
getConcurrency()
Get an integer specifying the maximum number of tests that may
be run in parallel.
|
Parameters.ConcurrencyParameters |
getConcurrencyParameters()
Get an object which provides access to the integer specifying
the maximum number of tests that may be run in parallel.
|
java.io.File[] |
getCustomExcludeFiles()
Get the files used to define the exclude list when the
exclude list mode is set to CUSTOM_EXCLUDE_LIST.
|
java.lang.String |
getErrorMessage()
If there is an error in any of the configuration values,
as indicated by isValid, this method will provide a detail
message about one or more of the invalid values.
|
java.io.File[] |
getExcludeFiles()
Get the set of files which define the exclude list.
|
ExcludeList |
getExcludeList()
Get an exclude list which identifies tests or test cases
to be excluded from the test run.
|
TestFilter |
getExcludeListFilter()
Get a filter which will filter tests according to the result
of getExcludeList().
|
Parameters.ExcludeListParameters |
getExcludeListParameters()
Get an object which provides access to the exclude list which
identifies tests or test cases to be excluded from the test run.
|
int |
getExcludeMode()
Get the current exclude list mode.
|
TestFilter[] |
getFilters()
Get an array of the non-null filters returned from
getExcludeListFilter, getKeywordsFilter, getPriorStatusFilter,
and getRelevantTestFilter.
|
Keywords |
getKeywords()
Get a keywords object which identifies tests to be run according
to their keywords.
|
TestFilter |
getKeywordsFilter()
Get a filter which will filter tests according to the result
of getKeywords().
|
int |
getKeywordsMode()
Get the current keywords mode.
|
Parameters.KeywordsParameters |
getKeywordsParameters()
Get an object which provides access to the keywords object which
identifies tests to be run according to their keywords.
|
int |
getLatestExcludeAutoCheckInterval()
Get the interval, in days, to be used when automatically
checking for exclude list updates and the auto check mode
is set to CHECK_EVERY_X_DAYS.
|
int |
getLatestExcludeAutoCheckMode()
Get the mode which defines how often to automatically check
for updated exclude lists, when the exclude list mode is set
to LATEST_EXCLUDE_LIST, and the automatic check is enabled.
|
int |
getMatchKeywordsMode()
Get a value which indicates how to interpret the match value,
when the keywords mode is set to MATCH_KEYWORDS.
|
java.lang.String |
getMatchKeywordsValue()
Get a value that identifies which tests are to be selected,
when the keywords mode is set to MATCH_KEYWORDS.
|
boolean[] |
getMatchPriorStatusValues()
Get an array of booleans which identify which tests to be run,
according to their prior execution status.
|
TestFilter |
getPriorStatusFilter()
Get a filter which will filter tests according to the result
of getPriorStatusValus().
|
int |
getPriorStatusMode()
Get the current mode determining whether tests are selected or not
according to their prior execution status.
|
Parameters.PriorStatusParameters |
getPriorStatusParameters()
Get an object which provides access to an array of booleans which
identify tests to be run according to their prior execution status.
|
boolean[] |
getPriorStatusValues()
Get an array of booleans which identify tests to be run according to their
prior execution status.
|
TestFilter |
getRelevantTestFilter()
Get a test-suite specific filter which will filter tests according
to test-suite-specific criteria, as perhaps determined by
a configuration interview.
|
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.
|
java.lang.String[] |
getTests()
Get the paths identifying the tests or folders of tests within
the test suite to be run.
|
int |
getTestsMode()
Get the current mode for how the tests are specified.
|
Parameters.TestsParameters |
getTestsParameters()
Get an object which provides access to the paths identifying the tests
or folders of tests to be run.
|
TestSuite |
getTestSuite()
Get the test suite for which these parameters apply.
|
float |
getTimeoutFactor()
Get an integer specifying a scale factor to be applied to the
standard timeout for the test.
|
Parameters.TimeoutFactorParameters |
getTimeoutFactorParameters()
Get an object which provides access to the integer specifying
a scale factor to be applied to the standard timeout for the test.
|
WorkDirectory |
getWorkDirectory()
Get the work directory in which to store the results of the test run.
|
boolean |
isLatestExcludeAutoCheckEnabled()
Check if the automatic check for newer exclude lists
is enabled when the exclude list mode is set to LATEST_EXCLUDE_LIST.
|
boolean |
isValid()
Determine whether all the configuration values are valid.
|
void |
setConcurrency(int conc)
Set an integer specifying the maximum number of tests that may
be run in parallel.
|
void |
setCustomExcludeFiles(java.io.File[] files)
Set the files used to define the exclude list when the
exclude list mode is set to CUSTOM_EXCLUDE_LIST.
|
void |
setExcludeFiles(java.io.File[] files)
Set the set of files used to define the exclude list.
|
void |
setExcludeMode(int mode)
Set the current exclude list mode.
|
void |
setKeywords(int mode,
java.lang.String value)
Set the details of the keywords to be used, if any,
to filter tests for execution.
|
void |
setKeywordsMode(int mode)
Set the current keywords mode.
|
void |
setLatestExcludeAutoCheckEnabled(boolean b)
Specify if the automatic check for newer exclude lists
is enabled when the exclude list mode is set to LATEST_EXCLUDE_LIST.
|
void |
setLatestExcludeAutoCheckInterval(int days)
Set the interval, in days, to be used when automatically
checking for exclude list updates and the auto check mode
is set to CHECK_EVERY_X_DAYS.
|
void |
setLatestExcludeAutoCheckMode(int mode)
Set the mode which defines how often to automatically check
for updated exclude lists, when the exclude list mode is set
to LATEST_EXCLUDE_LIST, and the automatic check is enabled.
|
void |
setMatchKeywords(int mode,
java.lang.String value)
Set how to match a tests keywords when the keywords mode
is set to MATCH_KEYWORDS.
|
void |
setMatchPriorStatusValues(boolean[] v)
Set an array of booleans to identify which tests to be run,
according to their prior execution status.
|
void |
setPriorStatusMode(int mode)
Set the current mode determining whether tests are selected or not
according to their prior execution status.
|
void |
setPriorStatusValues(boolean[] values)
Set which prior status values should be used, if any, to select tests
for execution.
|
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.
|
void |
setTestSuite(java.io.File file)
Set the test suite for the test run.
|
void |
setTestSuite(TestSuite ts)
Set the test suite for the test run.
|
void |
setTimeoutFactor(float tf)
Set an integer specifying a scale factor to be applied to the
standard timeout for the test.
|
void |
setWorkDirectory(java.io.File dir)
Set the work directory for the test run.
|
void |
setWorkDirectory(WorkDirectory wd)
Set the work directory for the test run.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEnv, getEnvParameters
protected java.lang.String testSuiteError
protected java.lang.String workDirError
protected java.lang.String excludeListError
protected java.lang.String keywordsError
protected java.lang.String concurrencyError
protected java.lang.String timeoutFactorError
public TestSuite getTestSuite()
Parameters
getTestSuite
in interface Parameters
Parameters.setTestSuite(com.sun.javatest.TestSuite)
public void setTestSuite(java.io.File file)
file
- a path defining the test suite to be opened and set as the test
suite for the test run.getTestSuite()
,
setTestSuite(TestSuite)
public void setTestSuite(TestSuite ts)
setTestSuite
in interface Parameters
ts
- the test suite to be set.java.lang.NullPointerException
- if ts is nulljava.lang.IllegalStateException
- if the test suite has already been set to
something differentgetTestSuite()
public WorkDirectory getWorkDirectory()
Parameters
getWorkDirectory
in interface Parameters
Parameters.setWorkDirectory(com.sun.javatest.WorkDirectory)
public void setWorkDirectory(java.io.File dir)
dir
- a path defining the work directory to be opened and set as the
work directory for the test run.getWorkDirectory()
,
setWorkDirectory(WorkDirectory)
public void setWorkDirectory(WorkDirectory wd)
setWorkDirectory
in interface Parameters
wd
- the work directory to be set.java.lang.NullPointerException
- if wd is nulljava.lang.IllegalStateException
- if the work directory has already been set to
something differentgetWorkDirectory()
public Parameters.TestsParameters getTestsParameters()
Parameters
getTestsParameters
in interface Parameters
public java.lang.String[] getTests()
Parameters
getTests
in interface Parameters
getTests
in interface Parameters.TestsParameters
Parameters.TestsParameters.getTests()
public void setTests(java.lang.String[] tests)
Parameters.MutableTestsParameters
setTests
in interface Parameters.MutableTestsParameters
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()
public int getTestsMode()
Parameters.MutableTestsParameters
getTestsMode
in interface Parameters.MutableTestsParameters
Parameters.MutableTestsParameters.setTestsMode(int)
,
Parameters.MutableTestsParameters.ALL_TESTS
,
Parameters.MutableTestsParameters.SPECIFIED_TESTS
public void setTestsMode(int mode)
Parameters.MutableTestsParameters
setTestsMode
in interface Parameters.MutableTestsParameters
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.Parameters.MutableTestsParameters.getTestsMode()
,
Parameters.MutableTestsParameters.ALL_TESTS
,
Parameters.MutableTestsParameters.SPECIFIED_TESTS
public java.lang.String[] getSpecifiedTests()
Parameters.MutableTestsParameters
getSpecifiedTests
in interface Parameters.MutableTestsParameters
Parameters.MutableTestsParameters.setSpecifiedTests(java.lang.String[])
,
Parameters.TestsParameters.getTests()
public void setSpecifiedTests(java.lang.String[] tests)
Parameters.MutableTestsParameters
setSpecifiedTests
in interface Parameters.MutableTestsParameters
tests
- an array of paths identifying the tests to be runParameters.MutableTestsParameters.getSpecifiedTests()
,
Parameters.TestsParameters.getTests()
public Parameters.ExcludeListParameters getExcludeListParameters()
Parameters
getExcludeListParameters
in interface Parameters
public java.io.File[] getExcludeFiles()
Parameters.MutableExcludeListParameters
getExcludeFiles
in interface Parameters.MutableExcludeListParameters
Parameters.MutableExcludeListParameters.getExcludeFiles()
,
Parameters.MutableExcludeListParameters.setExcludeFiles(java.io.File[])
public void setExcludeFiles(java.io.File[] files)
Parameters.MutableExcludeListParameters
setExcludeFiles
in interface Parameters.MutableExcludeListParameters
files
- If null, the exclude mode will be set to NO_EXCLUDE_LIST;
if not null, the exclude mode will be set to CUSTOM_EXCLUDE_LIST
and the custom exclude files will be set to this valueParameters.MutableExcludeListParameters.getExcludeFiles()
public ExcludeList getExcludeList()
Parameters
getExcludeList
in interface Parameters
getExcludeList
in interface Parameters.ExcludeListParameters
Parameters.getExcludeListFilter()
,
Parameters.ExcludeListParameters.getExcludeList()
public TestFilter getExcludeListFilter()
Parameters
getExcludeListFilter
in interface Parameters
Parameters.getExcludeList()
public int getExcludeMode()
Parameters.MutableExcludeListParameters
getExcludeMode
in interface Parameters.MutableExcludeListParameters
Parameters.MutableExcludeListParameters.setExcludeMode(int)
,
Parameters.MutableExcludeListParameters.NO_EXCLUDE_LIST
,
Parameters.MutableExcludeListParameters.INITIAL_EXCLUDE_LIST
,
Parameters.MutableExcludeListParameters.LATEST_EXCLUDE_LIST
,
Parameters.MutableExcludeListParameters.CUSTOM_EXCLUDE_LIST
public void setExcludeMode(int mode)
Parameters.MutableExcludeListParameters
setExcludeMode
in interface Parameters.MutableExcludeListParameters
mode
- A value indicating the desired exclude list modeParameters.MutableExcludeListParameters.getExcludeMode()
,
Parameters.MutableExcludeListParameters.NO_EXCLUDE_LIST
,
Parameters.MutableExcludeListParameters.INITIAL_EXCLUDE_LIST
,
Parameters.MutableExcludeListParameters.LATEST_EXCLUDE_LIST
,
Parameters.MutableExcludeListParameters.CUSTOM_EXCLUDE_LIST
public java.io.File[] getCustomExcludeFiles()
Parameters.MutableExcludeListParameters
getCustomExcludeFiles
in interface Parameters.MutableExcludeListParameters
Parameters.MutableExcludeListParameters.setCustomExcludeFiles(java.io.File[])
public void setCustomExcludeFiles(java.io.File[] files)
Parameters.MutableExcludeListParameters
setCustomExcludeFiles
in interface Parameters.MutableExcludeListParameters
files
- the files used to define a custom exclude listParameters.MutableExcludeListParameters.getCustomExcludeFiles()
public boolean isLatestExcludeAutoCheckEnabled()
Parameters.MutableExcludeListParameters
isLatestExcludeAutoCheckEnabled
in interface Parameters.MutableExcludeListParameters
Parameters.MutableExcludeListParameters.setLatestExcludeAutoCheckEnabled(boolean)
public void setLatestExcludeAutoCheckEnabled(boolean b)
Parameters.MutableExcludeListParameters
setLatestExcludeAutoCheckEnabled
in interface Parameters.MutableExcludeListParameters
b
- whether or not the automatic check is enabledParameters.MutableExcludeListParameters.isLatestExcludeAutoCheckEnabled()
public int getLatestExcludeAutoCheckMode()
Parameters.MutableExcludeListParameters
getLatestExcludeAutoCheckMode
in interface Parameters.MutableExcludeListParameters
Parameters.MutableExcludeListParameters.setLatestExcludeAutoCheckMode(int)
,
Parameters.MutableExcludeListParameters.CHECK_EVERY_X_DAYS
,
Parameters.MutableExcludeListParameters.CHECK_EVERY_RUN
public void setLatestExcludeAutoCheckMode(int mode)
Parameters.MutableExcludeListParameters
setLatestExcludeAutoCheckMode
in interface Parameters.MutableExcludeListParameters
mode
- a value indicating how often to check for the
availability of a newer exclude listParameters.MutableExcludeListParameters.getLatestExcludeAutoCheckMode()
,
Parameters.MutableExcludeListParameters.CHECK_EVERY_X_DAYS
,
Parameters.MutableExcludeListParameters.CHECK_EVERY_RUN
public int getLatestExcludeAutoCheckInterval()
Parameters.MutableExcludeListParameters
getLatestExcludeAutoCheckInterval
in interface Parameters.MutableExcludeListParameters
Parameters.MutableExcludeListParameters.setLatestExcludeAutoCheckInterval(int)
public void setLatestExcludeAutoCheckInterval(int days)
Parameters.MutableExcludeListParameters
setLatestExcludeAutoCheckInterval
in interface Parameters.MutableExcludeListParameters
days
- the number of days to wait between checksParameters.MutableExcludeListParameters.getLatestExcludeAutoCheckInterval()
public Parameters.KeywordsParameters getKeywordsParameters()
Parameters
getKeywordsParameters
in interface Parameters
public Keywords getKeywords()
Parameters
getKeywords
in interface Parameters
getKeywords
in interface Parameters.KeywordsParameters
Parameters.KeywordsParameters.getKeywords()
public void setKeywords(int mode, java.lang.String value)
Parameters.MutableKeywordsParameters
setKeywords
in interface Parameters.MutableKeywordsParameters
mode
- the value of the match keywords mode to be set if
value
is not nullvalue
- if null, the keywords mode will be set to NO_KEYWORDS;
if not null, the keywords mode will be set to MATCH_KEYWORDS, the
match keywords mode will be set to mode
,
and the match keywords value will be set to this valueParameters.KeywordsParameters.getKeywords()
,
Parameters.MutableKeywordsParameters.NO_KEYWORDS
,
Parameters.MutableKeywordsParameters.MATCH_KEYWORDS
public TestFilter getKeywordsFilter()
Parameters
getKeywordsFilter
in interface Parameters
Parameters.getKeywords()
public int getKeywordsMode()
Parameters.MutableKeywordsParameters
getKeywordsMode
in interface Parameters.MutableKeywordsParameters
Parameters.MutableKeywordsParameters.setKeywordsMode(int)
,
Parameters.MutableKeywordsParameters.NO_KEYWORDS
,
Parameters.MutableKeywordsParameters.MATCH_KEYWORDS
public void setKeywordsMode(int mode)
Parameters.MutableKeywordsParameters
setKeywordsMode
in interface Parameters.MutableKeywordsParameters
mode
- set to NO_KEYWORDS if no keyword filtering will be
used to select tests for execution, or MATCH_KEYWORDS if keywords
will be filtered according to the match mode and match value.Parameters.MutableKeywordsParameters.getKeywordsMode()
,
Parameters.MutableKeywordsParameters.NO_KEYWORDS
,
Parameters.MutableKeywordsParameters.MATCH_KEYWORDS
public int getMatchKeywordsMode()
Parameters.MutableKeywordsParameters
getMatchKeywordsMode
in interface Parameters.MutableKeywordsParameters
Parameters.MutableKeywordsParameters.setMatchKeywords(int, java.lang.String)
,
Parameters.MutableKeywordsParameters.ANY_OF
,
Parameters.MutableKeywordsParameters.ALL_OF
,
Parameters.MutableKeywordsParameters.EXPR
public java.lang.String getMatchKeywordsValue()
Parameters.MutableKeywordsParameters
getMatchKeywordsValue
in interface Parameters.MutableKeywordsParameters
Parameters.MutableKeywordsParameters.setMatchKeywords(int, java.lang.String)
,
Parameters.MutableKeywordsParameters.ANY_OF
,
Parameters.MutableKeywordsParameters.ALL_OF
,
Parameters.MutableKeywordsParameters.EXPR
public void setMatchKeywords(int mode, java.lang.String value)
Parameters.MutableKeywordsParameters
setMatchKeywords
in interface Parameters.MutableKeywordsParameters
mode
- A value indicating how to interpret value
value
- If mode
is set to ANY_OF or ALL_OF,
this value should give a white-space separate list of keywords
to be matched; if mode
is set to EXPR, this value
should be a boolean expression using terminals, & (and), | (or),
! (negation) and parentheses, where the terminals are true if
a test description contains that name as one of its keywords.Parameters.MutableKeywordsParameters.getMatchKeywordsMode()
,
Parameters.MutableKeywordsParameters.getMatchKeywordsValue()
,
Parameters.MutableKeywordsParameters.ANY_OF
,
Parameters.MutableKeywordsParameters.ALL_OF
,
Parameters.MutableKeywordsParameters.EXPR
public Parameters.PriorStatusParameters getPriorStatusParameters()
Parameters
getPriorStatusParameters
in interface Parameters
public boolean[] getPriorStatusValues()
Parameters
getPriorStatusValues
in interface Parameters
getPriorStatusValues
in interface Parameters.PriorStatusParameters
Parameters.PriorStatusParameters.getPriorStatusValues()
public void setPriorStatusValues(boolean[] values)
Parameters.MutablePriorStatusParameters
setPriorStatusValues
in interface Parameters.MutablePriorStatusParameters
values
- if null, the prior status mode will be set to NO_PRIOR_STATUS;
if not null, the prior status mode will be set to MATCH_PRIOR_STATUS,
and the matching values will be set to this array.Parameters.PriorStatusParameters.getPriorStatusValues()
public TestFilter getPriorStatusFilter()
Parameters
getPriorStatusFilter
in interface Parameters
Parameters.getPriorStatusValues()
public int getPriorStatusMode()
Parameters.MutablePriorStatusParameters
getPriorStatusMode
in interface Parameters.MutablePriorStatusParameters
Parameters.MutablePriorStatusParameters.setPriorStatusMode(int)
,
Parameters.MutablePriorStatusParameters.NO_PRIOR_STATUS
,
Parameters.MutablePriorStatusParameters.MATCH_PRIOR_STATUS
public void setPriorStatusMode(int mode)
Parameters.MutablePriorStatusParameters
setPriorStatusMode
in interface Parameters.MutablePriorStatusParameters
mode
- if set to NO_PRIOR_STATUS, the prior execution status
will not be taken into account; otherwise, if set to MATCH_PRIOR_STATUS
tests will be selected if and only of their execution status matches
one of the matching prior status values.Parameters.MutablePriorStatusParameters.getPriorStatusMode()
,
Parameters.MutablePriorStatusParameters.NO_PRIOR_STATUS
,
Parameters.MutablePriorStatusParameters.MATCH_PRIOR_STATUS
public boolean[] getMatchPriorStatusValues()
Parameters.MutablePriorStatusParameters
Status.PASSED
, Status.FAILED
,
Status.ERROR
, and Status.NOT_RUN
.
A test will be selected for execution if the entry in the
array corresponding to the tests execution status is set to true.getMatchPriorStatusValues
in interface Parameters.MutablePriorStatusParameters
Parameters.MutablePriorStatusParameters.setMatchPriorStatusValues(boolean[])
public void setMatchPriorStatusValues(boolean[] v)
Parameters.MutablePriorStatusParameters
Status.PASSED
, Status.FAILED
,
Status.ERROR
, and Status.NOT_RUN
.
A test will be selected for execution if the entry in the
array corresponding to the tests execution status is set to true.setMatchPriorStatusValues
in interface Parameters.MutablePriorStatusParameters
v
- an array of booleans which identifying
the prior execution status of tests to be selected to be executed.Parameters.MutablePriorStatusParameters.getMatchPriorStatusValues()
public Parameters.ConcurrencyParameters getConcurrencyParameters()
Parameters
getConcurrencyParameters
in interface Parameters
public int getConcurrency()
Parameters
getConcurrency
in interface Parameters
getConcurrency
in interface Parameters.ConcurrencyParameters
Parameters.ConcurrencyParameters.getConcurrency()
public void setConcurrency(int conc)
Parameters.MutableConcurrencyParameters
setConcurrency
in interface Parameters.MutableConcurrencyParameters
conc
- an integer specifying the maximum number of tests that
may be run in parallelParameters.ConcurrencyParameters.getConcurrency()
public Parameters.TimeoutFactorParameters getTimeoutFactorParameters()
Parameters
getTimeoutFactorParameters
in interface Parameters
public float getTimeoutFactor()
Parameters
getTimeoutFactor
in interface Parameters
getTimeoutFactor
in interface Parameters.TimeoutFactorParameters
Parameters.TimeoutFactorParameters.getTimeoutFactor()
public void setTimeoutFactor(float tf)
Parameters.MutableTimeoutFactorParameters
setTimeoutFactor
in interface Parameters.MutableTimeoutFactorParameters
tf
- an integer specifying a scale factor to be applied to
the standard timeout for each test.Parameters.TimeoutFactorParameters.getTimeoutFactor()
public TestFilter getRelevantTestFilter()
Parameters
getRelevantTestFilter
in interface Parameters
public TestFilter[] getFilters()
Parameters
getFilters
in interface Parameters
Parameters.getExcludeListFilter()
,
Parameters.getKeywordsFilter()
,
Parameters.getPriorStatusFilter()
,
Parameters.getRelevantTestFilter()
public boolean isValid()
Parameters
isValid
in interface Parameters
Parameters.getErrorMessage()
public java.lang.String getErrorMessage()
Parameters
getErrorMessage
in interface Parameters
Parameters.isValid()
protected static java.io.File[] getAbsoluteFiles(java.io.File baseDir, java.io.File[] files)
baseDir
- The base directory for any relative filesfiles
- The files to be made absolute, or null if noneprotected static boolean equal(boolean[] b1, boolean[] b2)
b1
- the first array to be comparedb2
- the second array to be comparedprotected static boolean equal(java.io.File[] f1, java.io.File[] f2)
f1
- the first array to be comparedf2
- the second array to be comparedCopyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.