Class ClassFilter

  • All Implemented Interfaces:
    Predicate<Class<?>>

    @API(status=INTERNAL,
         since="1.1")
    public class ClassFilter
    extends Object
    implements Predicate<Class<?>>
    Class-related predicate holder used by reflection utilities.

    DISCLAIMER

    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!

    Since:
    1.1
    • 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.