Class ClassFilter

  • All Implemented Interfaces:

    public class ClassFilter
    extends Object
    implements Predicate<Class<?>>
    Class-related predicate holder used by reflection utilities.


    These utilities are intended solely for usage within the JUnit framework itself. Any usage by external parties is not supported. Use at your own risk!

    • Method Detail

      • match

        public boolean match​(String name)
        Test name using the stored name predicate.
      • match

        public boolean match​(Class<?> type)
        Test class using the stored class predicate.
      • test

        public boolean test​(Class<?> type)
        Specified by:
        test in interface Predicate<Class<?>>
        Implementation Note:
        This implementation combines all tests stored in the predicates of this instance. Any new predicate must be added to this test method as well.