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 class
Deprecated.private final class
Deprecated.static enum
Deprecated.Type of patterns in ResolvedTest constructor. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
Deprecated.private final ResolvedTest.ClassMatcher
Deprecated.private final String
Deprecated.private final String
Deprecated.private final boolean
Deprecated.private final boolean
Deprecated.private static final String
Deprecated.private final ResolvedTest.MethodMatcher
Deprecated.private final String
Deprecated.private static final String
Deprecated.private static final String
Deprecated. -
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 regexpattern
is always unwrapped. -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
alwaysInclusiveQuietly
(String testClassFile) Deprecated.Preventsmatch(String, String)
from throwing NPE in situations when inclusive returns true.private boolean
canMatchExclusive
(String testClassFile, String methodName) Deprecated.private boolean
canMatchExclusiveAll
(String testClassFile, String methodName) Deprecated.private boolean
canMatchExclusiveClasses
(String testClassFile, String methodName) Deprecated.private boolean
canMatchExclusiveMethods
(String testClassFile, String methodName) Deprecated.private static void
checkIllegalCharacters
(String... expressions) Deprecated.private static String
convertToPath
(String className) Deprecated.private static String
description
(String clazz, String method, boolean isRegex) Deprecated.boolean
Deprecated.(package private) static String
Deprecated.Deprecated.Test class file pattern, e.g.Deprecated.Test method, e.g.int
hashCode()
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
isEmpty()
Deprecated.boolean
Deprecated.boolean
Deprecated.private boolean
Deprecated.boolean
matchAsExclusive
(String testClassFile, String methodName) Deprecated.boolean
matchAsInclusive
(String testClassFile, String methodName) Deprecated.private boolean
matchClass
(String testClassFile) Deprecated.private boolean
matchMethod
(String methodName) Deprecated.private static String
reformatClassPattern
(String s, boolean isRegex) Deprecated.private static void
Deprecated.toString()
Deprecated.private static String
Deprecated.(package private) static String
Deprecated.
-
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
-true
if pattern is regex
-
ResolvedTest
Deprecated.The regexpattern
is always unwrapped.- Parameters:
type
- class or methodpattern
- pattern or regexisRegex
-true
if 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:
true
if 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.
-