"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "junit-platform-engine/src/main/java/org/junit/platform/engine/discovery/PackageNameFilter.java" between
junit5-r5.3.2.tar.gz and junit5-r5.4.0.tar.gz

About: JUnit 5 is a unit testing framework for the Java programming language.

PackageNameFilter.java  (junit5-r5.3.2):PackageNameFilter.java  (junit5-r5.4.0)
/* /*
* Copyright 2015-2018 the original author or authors. * Copyright 2015-2019 the original author or authors.
* *
* All rights reserved. This program and the accompanying materials are * All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v2.0 which * made available under the terms of the Eclipse Public License v2.0 which
* accompanies this distribution and is available at * accompanies this distribution and is available at
* *
* http://www.eclipse.org/legal/epl-v20.html * http://www.eclipse.org/legal/epl-v20.html
*/ */
package org.junit.platform.engine.discovery; package org.junit.platform.engine.discovery;
skipping to change at line 24 skipping to change at line 24
import java.util.List; import java.util.List;
import org.apiguardian.api.API; import org.apiguardian.api.API;
import org.junit.platform.engine.DiscoveryFilter; import org.junit.platform.engine.DiscoveryFilter;
/** /**
* {@link DiscoveryFilter} that is applied to the name of a {@link Package}. * {@link DiscoveryFilter} that is applied to the name of a {@link Package}.
* *
* @since 1.0 * @since 1.0
* @see #includePackageNames * @see #includePackageNames(String...)
* @see #excludePackageNames(String...)
* @see ClassNameFilter
*/ */
@API(status = STABLE, since = "1.0") @API(status = STABLE, since = "1.0")
public interface PackageNameFilter extends DiscoveryFilter<String> { public interface PackageNameFilter extends DiscoveryFilter<String> {
/** /**
* Create a new <em>include</em> {@link PackageNameFilter} based on the * Create a new <em>include</em> {@link PackageNameFilter} based on the
* supplied package names. * supplied package names.
* *
* <p>The names are combined using OR semantics, i.e. if the fully * <p>The names are combined using OR semantics, i.e. if the fully
* qualified name of a package starts with at least one of the names, * qualified name of a package starts with at least one of the names,
* the package will be included in the result set. * the package will be included in the result set.
* *
* @param names package names that we be compared against fully qualified * @param names package names that we be compared against fully qualified
* package names; never {@code null}, empty, or containing {@code null} * package names; never {@code null}, empty, or containing {@code null}
* @see Package#getName() * @see Package#getName()
* @see #includePackageNames(List)
* @see #excludePackageNames(String...)
*/ */
static PackageNameFilter includePackageNames(String... names) { static PackageNameFilter includePackageNames(String... names) {
return new IncludePackageNameFilter(names); return new IncludePackageNameFilter(names);
} }
/** /**
* Create a new <em>include</em> {@link PackageNameFilter} based on the * Create a new <em>include</em> {@link PackageNameFilter} based on the
* supplied package names. * supplied package names.
* *
* <p>The names are combined using OR semantics, i.e. if the fully * <p>The names are combined using OR semantics, i.e. if the fully
* qualified name of a package starts with at least one of the names, * qualified name of a package starts with at least one of the names,
* the package will be included in the result set. * the package will be included in the result set.
* *
* @param names package names that we be compared against fully qualified * @param names package names that we be compared against fully qualified
* package names; never {@code null}, empty, or containing {@code null} * package names; never {@code null}, empty, or containing {@code null}
* @see Package#getName() * @see Package#getName()
* @see #includePackageNames(String...)
* @see #excludePackageNames(String...)
*/ */
static PackageNameFilter includePackageNames(List<String> names) { static PackageNameFilter includePackageNames(List<String> names) {
return includePackageNames(names.toArray(new String[0])); return includePackageNames(names.toArray(new String[0]));
} }
/** /**
* Create a new <em>exclude</em> {@link PackageNameFilter} based on the * Create a new <em>exclude</em> {@link PackageNameFilter} based on the
* supplied package names. * supplied package names.
* *
* <p>The names are combined using OR semantics, i.e. if the fully * <p>The names are combined using OR semantics, i.e. if the fully
* qualified name of a package starts with at least one of the names, * qualified name of a package starts with at least one of the names,
* the package will be excluded in the result set. * the package will be excluded in the result set.
* *
* @param names package names that we be compared against fully qualified * @param names package names that we be compared against fully qualified
* package names; never {@code null}, empty, or containing {@code null} * package names; never {@code null}, empty, or containing {@code null}
* @see Package#getName() * @see Package#getName()
* @see #excludePackageNames(List)
* @see #includePackageNames(String...)
*/ */
static PackageNameFilter excludePackageNames(String... names) { static PackageNameFilter excludePackageNames(String... names) {
return new ExcludePackageNameFilter(names); return new ExcludePackageNameFilter(names);
} }
/** /**
* Create a new <em>exclude</em> {@link PackageNameFilter} based on the * Create a new <em>exclude</em> {@link PackageNameFilter} based on the
* supplied package names. * supplied package names.
* *
* <p>The names are combined using OR semantics, i.e. if the fully * <p>The names are combined using OR semantics, i.e. if the fully
* qualified name of a package starts with at least one of the names, * qualified name of a package starts with at least one of the names,
* the package will be excluded in the result set. * the package will be excluded in the result set.
* *
* @param names package names that we be compared against fully qualified * @param names package names that we be compared against fully qualified
* package names; never {@code null}, empty, or containing {@code null} * package names; never {@code null}, empty, or containing {@code null}
* @see Package#getName() * @see Package#getName()
* @see #excludePackageNames(String...)
* @see #includePackageNames(String...)
*/ */
static PackageNameFilter excludePackageNames(List<String> names) { static PackageNameFilter excludePackageNames(List<String> names) {
return excludePackageNames(names.toArray(new String[0])); return excludePackageNames(names.toArray(new String[0]));
} }
} }
 End of changes. 6 change blocks. 
2 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)