Class GlobFilter
- java.lang.Object
-
- org.junit.runner.manipulation.Filter
-
- com.carrotsearch.randomizedtesting.GlobFilter
-
- Direct Known Subclasses:
ClassGlobFilter
,MethodGlobFilter
public abstract class GlobFilter extends org.junit.runner.manipulation.Filter
A filter that matches something using globbing (*) pattern.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
globPattern
private java.util.regex.Pattern
pattern
-
Constructor Summary
Constructors Constructor Description GlobFilter(java.lang.String glob)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.String
describe()
protected boolean
globMatches(java.lang.String string)
Check if a given string matches the glob.private java.util.regex.Pattern
globToPattern(java.lang.String glob)
Simplified conversion to a regexp.abstract boolean
shouldRun(org.junit.runner.Description description)
-
-
-
Method Detail
-
globMatches
protected final boolean globMatches(java.lang.String string)
Check if a given string matches the glob.
-
globToPattern
private java.util.regex.Pattern globToPattern(java.lang.String glob)
Simplified conversion to a regexp.
-
shouldRun
public abstract boolean shouldRun(org.junit.runner.Description description)
- Specified by:
shouldRun
in classorg.junit.runner.manipulation.Filter
-
describe
public abstract java.lang.String describe()
- Specified by:
describe
in classorg.junit.runner.manipulation.Filter
-
-