Class Categories.CategoryFilter

    • Constructor Detail

      • CategoryFilter

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

        protected CategoryFilter​(boolean matchAnyIncludes,
                                 java.util.Set<java.lang.Class<?>> includes,
                                 boolean matchAnyExcludes,
                                 java.util.Set<java.lang.Class<?>> excludes)
    • Method Detail

      • categoryFilter

        public static Categories.CategoryFilter categoryFilter​(boolean matchAnyInclusions,
                                                               java.util.Set<java.lang.Class<?>> inclusions,
                                                               boolean matchAnyExclusions,
                                                               java.util.Set<java.lang.Class<?>> exclusions)
      • 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
        See Also:
        toString()
      • toString

        public java.lang.String toString()
        Returns string in the form "[included categories] - [excluded categories]", where both sets have comma separated names of categories.
        Overrides:
        toString in class java.lang.Object
        Returns:
        string representation for the relative complement of excluded categories set in the set of included categories. Examples:
        • "categories [all]" for all included categories and no excluded ones;
        • "categories [all] - [A, B]" for all included categories and given excluded ones;
        • "categories [A, B] - [C, D]" for given included categories and given excluded ones.
        See Also:
        name of category
      • 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