protected static class TestClasses.TestMatcher extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
TestMatcher(String pattern)
Create a
TestClasses.TestMatcher using the specified pattern. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getClassPattern()
Obtain the regular expression that will be used to match test class names.
|
String |
getMethodPattern()
Obtain the regular expression that will be used to match test method names.
|
boolean |
hasClassPattern()
Indicate whether this
TestClasses.TestMatcher has a class pattern. |
int |
hashCode() |
boolean |
hasMethodPattern()
Indicate whether this
TestClasses.TestMatcher has a method pattern. |
boolean |
matches(String className)
Determine whether the specified class name matches this
TestClasses.TestMatcher's
class name pattern. |
boolean |
matches(String className,
String methodName)
Determine whether the specified class name matches this
TestClasses.TestMatcher's
class name pattern and specified mathd name matches this TestClasses.TestMatcher's
method name pattern. |
String |
toString() |
protected TestMatcher(String pattern)
TestClasses.TestMatcher using the specified pattern.
If the pattern contains a '#' charater it will be used to split the pattern where the first part will be the class name matcher and the second part will be the method name matcher.
If the pattern contains no '#' character then the whole pattern will be used to match class names and method names will not be filtered, i.e. all method names match.
pattern - the pattern to use to match class and method namespublic String getClassPattern()
public String getMethodPattern()
public boolean matches(String className)
TestClasses.TestMatcher's
class name pattern.className - the class name to matchTestClasses.TestMatcher's
class name pattern, otherwise falsepublic boolean matches(String className, String methodName)
TestClasses.TestMatcher's
class name pattern and specified mathd name matches this TestClasses.TestMatcher's
method name pattern.className - the class name to matchmethodName - the method name to matchTestClasses.TestMatcher's
patterns, otherwise falsepublic boolean hasClassPattern()
TestClasses.TestMatcher has a class pattern.TestClasses.TestMatcher has a class patternpublic boolean hasMethodPattern()
TestClasses.TestMatcher has a method pattern.TestClasses.TestMatcher has a method patternCopyright © 2017. All rights reserved.