Class Categories.CategoryFilter

  • Enclosing class:
    Categories

    public static class Categories.CategoryFilter
    extends Filter
    • Constructor Detail

      • CategoryFilter

        public CategoryFilter​(java.lang.Class<?> includedCategory,
                              java.lang.Class<?> excludedCategory)
    • Method Detail

      • describe

        public java.lang.String describe()
        Description copied from class: Filter
        Returns a textual description of this Filter
        Specified by:
        describe in class Filter
        Returns:
        a textual description of this Filter
      • shouldRun

        public boolean shouldRun​(Description description)
        Specified by:
        shouldRun in class Filter
        Parameters:
        description - the description of the test to be run
        Returns:
        true if the test should be run