public class SimpleTestSelector extends Object implements TestSelector
TestDescription will match if this selector's class-part is identical to the
TestDescriptions class name (same for the method name).| Constructor and Description |
|---|
SimpleTestSelector(String className,
String methodName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsClassPath(String classPath) |
String |
getExplanation() |
String |
getRawSelector() |
boolean |
isInclusive() |
boolean |
isMatchAnyClass() |
boolean |
isMatchAnyMethod() |
boolean |
matches(TestDescription description)
Whether this
TestSelector matches the given TestDescription. |
boolean |
matchesClassName(String thatClassName) |
public String getRawSelector()
getRawSelector in interface TestSelectorpublic String getExplanation()
getExplanation in interface TestSelectorpublic boolean isInclusive()
isInclusive in interface TestSelectorpublic boolean isMatchAnyClass()
isMatchAnyClass in interface TestSelectorpublic boolean isMatchAnyMethod()
isMatchAnyMethod in interface TestSelectorpublic boolean matches(TestDescription description)
TestSelectorTestSelector matches the given TestDescription. A class or method
name being null in the TestDescription means that it will match anything.matches in interface TestSelectordescription - the TestDescription to matchTestDescriptionpublic boolean matchesClassName(String thatClassName)
matchesClassName in interface TestSelectorpublic boolean containsClassPath(String classPath)
containsClassPath in interface TestSelector