public static interface Parameters.MutableKeywordsParameters extends Parameters.KeywordsParameters
Modifier and Type | Field and Description |
---|---|
static int |
ALL_OF
A constant used to indicate that tests that match all of
the given keywords should be selected.
|
static int |
ANY_OF
A constant used to indicate that tests that match any of
the given keywords should be selected.
|
static int |
EXPR
A constant used to indicate that tests that match the
given keyword expression should be selected.
|
static int |
MATCH_KEYWORDS
A constant used to indicate that only tests matching the
specified keywords should be selected.
|
static int |
NO_KEYWORDS
A constant used to indicate that no keyword filtering
should be used.
|
Modifier and Type | Method and Description |
---|---|
int |
getKeywordsMode()
Get the current keywords mode.
|
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.
|
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 |
setMatchKeywords(int mode,
java.lang.String value)
Set how to match a tests keywords when the keywords mode
is set to MATCH_KEYWORDS.
|
getKeywords
static final int NO_KEYWORDS
static final int MATCH_KEYWORDS
static final int ANY_OF
static final int ALL_OF
static final int EXPR
void setKeywords(int mode, java.lang.String value)
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()
,
NO_KEYWORDS
,
MATCH_KEYWORDS
int getKeywordsMode()
setKeywordsMode(int)
,
NO_KEYWORDS
,
MATCH_KEYWORDS
void setKeywordsMode(int mode)
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.getKeywordsMode()
,
NO_KEYWORDS
,
MATCH_KEYWORDS
int getMatchKeywordsMode()
setMatchKeywords(int, java.lang.String)
,
ANY_OF
,
ALL_OF
,
EXPR
java.lang.String getMatchKeywordsValue()
setMatchKeywords(int, java.lang.String)
,
ANY_OF
,
ALL_OF
,
EXPR
void setMatchKeywords(int mode, java.lang.String value)
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.getMatchKeywordsMode()
,
getMatchKeywordsValue()
,
ANY_OF
,
ALL_OF
,
EXPR
Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.