Class GlobFilter

  • Direct Known Subclasses:
    ClassGlobFilter, MethodGlobFilter

    public abstract class GlobFilter
    extends org.junit.runner.manipulation.Filter
    A filter that matches something using globbing (*) pattern.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String globPattern  
      private java.util.regex.Pattern pattern  
      • Fields inherited from class org.junit.runner.manipulation.Filter

        ALL
    • Constructor Summary

      Constructors 
      Constructor Description
      GlobFilter​(java.lang.String glob)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.String describe()  
      protected boolean globMatches​(java.lang.String string)
      Check if a given string matches the glob.
      private java.util.regex.Pattern globToPattern​(java.lang.String glob)
      Simplified conversion to a regexp.
      abstract boolean shouldRun​(org.junit.runner.Description description)  
      • Methods inherited from class org.junit.runner.manipulation.Filter

        apply, intersect, matchMethodDescription
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • globPattern

        protected final java.lang.String globPattern
      • pattern

        private final java.util.regex.Pattern pattern
    • Constructor Detail

      • GlobFilter

        public GlobFilter​(java.lang.String glob)
    • Method Detail

      • globMatches

        protected final boolean globMatches​(java.lang.String string)
        Check if a given string matches the glob.
      • globToPattern

        private java.util.regex.Pattern globToPattern​(java.lang.String glob)
        Simplified conversion to a regexp.
      • shouldRun

        public abstract boolean shouldRun​(org.junit.runner.Description description)
        Specified by:
        shouldRun in class org.junit.runner.manipulation.Filter
      • describe

        public abstract java.lang.String describe()
        Specified by:
        describe in class org.junit.runner.manipulation.Filter