Class DynamicDescendantFilter

java.lang.Object
org.junit.jupiter.engine.descriptor.DynamicDescendantFilter
All Implemented Interfaces:
BiPredicate<UniqueId,Integer>
Direct Known Subclasses:
DynamicDescendantFilter.WithoutIndexFiltering

@API(status=INTERNAL, since="5.1") public class DynamicDescendantFilter extends Object implements BiPredicate<UniqueId,Integer>
Filter for dynamic descendants of TestDescriptors that implement Filterable.
Since:
5.1
See Also:
  • Field Details

  • Constructor Details

    • DynamicDescendantFilter

      public DynamicDescendantFilter()
  • Method Details

    • allowUniqueIdPrefix

      public void allowUniqueIdPrefix(UniqueId uniqueId)
    • allowIndex

      public void allowIndex(Set<Integer> indices)
    • allowAll

      public void allowAll()
    • test

      public boolean test(UniqueId uniqueId, Integer index)
      Specified by:
      test in interface BiPredicate<UniqueId,Integer>
    • isEverythingAllowed

      private boolean isEverythingAllowed()
    • isUniqueIdAllowed

      private boolean isUniqueIdAllowed(UniqueId uniqueId)
    • isPrefixOrViceVersa

      private boolean isPrefixOrViceVersa(UniqueId currentUniqueId, UniqueId allowedUniqueId)
    • withoutIndexFiltering

      public DynamicDescendantFilter withoutIndexFiltering()