Class ResolvedTest
java.lang.Object
org.apache.maven.surefire.api.testset.ResolvedTest
Deprecated.
will be renamed to ResolvedTestPattern
Single pattern test filter resolved from multi pattern filter -Dtest=MyTest#test,AnotherTest#otherTest.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classDeprecated.private final classDeprecated.static enumDeprecated.Type of patterns in ResolvedTest constructor. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringDeprecated.private final ResolvedTest.ClassMatcherDeprecated.private final StringDeprecated.private final StringDeprecated.private final booleanDeprecated.private final booleanDeprecated.private static final StringDeprecated.private final ResolvedTest.MethodMatcherDeprecated.private final StringDeprecated.private static final StringDeprecated.private static final StringDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionResolvedTest(String classPattern, String methodPattern, boolean isRegex) Deprecated.'*' means zero or more characters
'?' means one and only one character The pattern %regex[] prefix and suffix does not appear.ResolvedTest(ResolvedTest.Type type, String pattern, boolean isRegex) Deprecated.The regexpatternis always unwrapped. -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanalwaysInclusiveQuietly(String testClassFile) Deprecated.Preventsmatch(String, String)from throwing NPE in situations when inclusive returns true.private booleancanMatchExclusive(String testClassFile, String methodName) Deprecated.private booleancanMatchExclusiveAll(String testClassFile, String methodName) Deprecated.private booleancanMatchExclusiveClasses(String testClassFile, String methodName) Deprecated.private booleancanMatchExclusiveMethods(String testClassFile, String methodName) Deprecated.private static voidcheckIllegalCharacters(String... expressions) Deprecated.private static StringconvertToPath(String className) Deprecated.private static Stringdescription(String clazz, String method, boolean isRegex) Deprecated.booleanDeprecated.(package private) static StringDeprecated.Deprecated.Test class file pattern, e.g.Deprecated.Test method, e.g.inthashCode()Deprecated.booleanDeprecated.booleanDeprecated.booleanisEmpty()Deprecated.booleanDeprecated.booleanDeprecated.private booleanDeprecated.booleanmatchAsExclusive(String testClassFile, String methodName) Deprecated.booleanmatchAsInclusive(String testClassFile, String methodName) Deprecated.private booleanmatchClass(String testClassFile) Deprecated.private booleanmatchMethod(String methodName) Deprecated.private static StringreformatClassPattern(String s, boolean isRegex) Deprecated.private static voidDeprecated.toString()Deprecated.private static StringDeprecated.(package private) static StringDeprecated.
-
Field Details
-
CLASS_FILE_EXTENSION
Deprecated.- See Also:
-
JAVA_FILE_EXTENSION
Deprecated.- See Also:
-
WILDCARD_PATH_PREFIX
Deprecated.- See Also:
-
WILDCARD_FILENAME_POSTFIX
Deprecated.- See Also:
-
classPattern
Deprecated. -
methodPattern
Deprecated. -
isRegexTestClassPattern
private final boolean isRegexTestClassPatternDeprecated. -
isRegexTestMethodPattern
private final boolean isRegexTestMethodPatternDeprecated. -
description
Deprecated. -
classMatcher
Deprecated. -
methodMatcher
Deprecated.
-
-
Constructor Details
-
ResolvedTest
Deprecated.'*' means zero or more characters
'?' means one and only one character The pattern %regex[] prefix and suffix does not appear. The regex pattern is always unwrapped by the caller.- Parameters:
classPattern- test class file patternmethodPattern- test methodisRegex-trueif pattern is regex
-
ResolvedTest
Deprecated.The regexpatternis always unwrapped.- Parameters:
type- class or methodpattern- pattern or regexisRegex-trueif pattern is regex
-
-
Method Details
-
getTestClassPattern
Deprecated.Test class file pattern, e.g. org/**/Cat*.class
, or null if not any andhasTestClassPattern()returns false. Other examples: org/animals/Cat*, org/animals/Ca?.class, %regex[Cat.class|Dog.*]
'*' means zero or more characters
'?' means one and only one character- Returns:
- class pattern or regex
-
hasTestClassPattern
public boolean hasTestClassPattern()Deprecated. -
getTestMethodPattern
Deprecated.Test method, e.g. "realTestMethod".
, or null if not any andhasTestMethodPattern()returns false. Other examples: test* or testSomethin? or %regex[testOne|testTwo] or %ant[testOne|testTwo]
'*' means zero or more characters
'?' means one and only one character- Returns:
- method pattern or regex
-
hasTestMethodPattern
public boolean hasTestMethodPattern()Deprecated. -
isRegexTestClassPattern
public boolean isRegexTestClassPattern()Deprecated. -
isRegexTestMethodPattern
public boolean isRegexTestMethodPattern()Deprecated. -
isEmpty
public boolean isEmpty()Deprecated. -
matchAsInclusive
Deprecated. -
matchAsExclusive
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated. -
description
Deprecated. -
canMatchExclusive
Deprecated. -
canMatchExclusiveMethods
Deprecated. -
canMatchExclusiveClasses
Deprecated. -
canMatchExclusiveAll
Deprecated. -
alwaysInclusiveQuietly
Deprecated.Preventsmatch(String, String)from throwing NPE in situations when inclusive returns true.- Parameters:
testClassFile- path to class file- Returns:
trueif examined class in null and class pattern exists
-
match
Deprecated. -
matchClass
Deprecated. -
matchMethod
Deprecated. -
tryBlank
Deprecated. -
reformatClassPattern
Deprecated. -
convertToPath
Deprecated. -
wrapRegex
Deprecated. -
fromFullyQualifiedClass
Deprecated. -
checkIllegalCharacters
Deprecated. -
throwSanityError
Deprecated.
-