public class XWikiExecutorTestMethodFilter
extends org.junit.runner.manipulation.Filter
XWikiExecutorSuite
's executed Runner
s (i.e. test
classes).
Each child runner (i.e. test method) of a test class is compared with a pattern
to see if it
shouldRun(Description)
during this test execution.
The "pattern" System Property is a regex that gets applied to values such as:
Examples of valid patterns:
Constructor and Description |
---|
XWikiExecutorTestMethodFilter(String pattern)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
describe() |
String |
getPattern() |
void |
setPattern(String pattern) |
boolean |
shouldRun(org.junit.runner.Description description) |
protected String pattern
public XWikiExecutorTestMethodFilter(String pattern)
pattern
- the pattern to use when filtering a runner's children (i.e. test methods).public String getPattern()
Runner
's children (i.e. test methods).public void setPattern(String pattern)
pattern
- the new pattern to use.public boolean shouldRun(org.junit.runner.Description description)
shouldRun
in class org.junit.runner.manipulation.Filter
public String describe()
describe
in class org.junit.runner.manipulation.Filter
Copyright © 2004–2021 XWiki. All rights reserved.