Top Description Fields Constructors Methods
org.junit.platform.engine.support.discovery

pack-priv Class ResourceUtils

extends Object
Class Inheritance
Imports
java.util.function.Predicate, org.junit.platform.commons.io.Resource, org.junit.platform.commons.support.ReflectionSupport

Resource-related utilities to be used in conjunction with ReflectionSupport.
Since
1.12

Field Summary

Modifier and TypeField and Description
private static final char
public static final String
private static final char

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static Predicate<Resource>
packageName(Predicate<String> packageFilter)

Match resources against a package filter.

private static String
packageName(String classpathResourceName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CLASSPATH_RESOURCE_PATH_SEPARATORback to summary
private static final char CLASSPATH_RESOURCE_PATH_SEPARATOR
DEFAULT_PACKAGE_NAMEback to summary
public static final String DEFAULT_PACKAGE_NAME
PACKAGE_SEPARATOR_CHARback to summary
private static final char PACKAGE_SEPARATOR_CHAR

Constructor Detail

ResourceUtilsback to summary
private ResourceUtils()

Method Detail

packageNameback to summary
pack-priv static Predicate<Resource> packageName(Predicate<String> packageFilter)

Match resources against a package filter.

The / separated path of a resource is rewritten to a . separated package names. The package filter is applied to that package name.

packageNameback to summary
private static String packageName(String classpathResourceName)