Class ExcludePackageNameFilter

java.lang.Object
org.junit.platform.engine.discovery.ExcludePackageNameFilter
All Implemented Interfaces:
PackageNameFilter, DiscoveryFilter<String>, Filter<String>

class ExcludePackageNameFilter extends Object implements PackageNameFilter
PackageNameFilter that matches fully qualified package names that are not prefixed by one of the package names provided to the filter.

If the fully qualified name of a package starts with at least one of the packages names of the filter, the package will be excluded.

Since:
1.0
  • Field Details

    • packageNames

      private final List<String> packageNames
    • patternDescription

      private final String patternDescription
  • Constructor Details

    • ExcludePackageNameFilter

      ExcludePackageNameFilter(String... packageNames)
  • Method Details