Class ResolvedTest


  • @Deprecated
    public final class ResolvedTest
    extends Object
    Deprecated.
    will be renamed to ResolvedTestPattern
    Single pattern test filter resolved from multi pattern filter -Dtest=MyTest#test,AnotherTest#otherTest.
    • Constructor Detail

      • ResolvedTest

        public ResolvedTest​(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. The regex pattern is always unwrapped by the caller.
        Parameters:
        classPattern - test class file pattern
        methodPattern - test method
        isRegex - true if pattern is regex
      • ResolvedTest

        public ResolvedTest​(ResolvedTest.Type type,
                            String pattern,
                            boolean isRegex)
        Deprecated.
        The regex pattern is always unwrapped.
        Parameters:
        type - class or method
        pattern - pattern or regex
        isRegex - true if pattern is regex
    • Method Detail

      • getTestClassPattern

        public String getTestClassPattern()
        Deprecated.
        Test class file pattern, e.g. org/**/Cat*.class
        , or null if not any and hasTestClassPattern() 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

        public String getTestMethodPattern()
        Deprecated.
        Test method, e.g. "realTestMethod".
        , or null if not any and hasTestMethodPattern() 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

        public boolean matchAsInclusive​(String testClassFile,
                                        String methodName)
        Deprecated.
      • matchAsExclusive

        public boolean matchAsExclusive​(String testClassFile,
                                        String methodName)
        Deprecated.
      • equals

        public boolean equals​(Object o)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object