Class ResourceUtils
- java.lang.Object
-
- org.junit.platform.engine.support.discovery.ResourceUtils
-
class ResourceUtils extends java.lang.ObjectResource-related utilities to be used in conjunction withReflectionSupport.- Since:
- 1.12
-
-
Field Summary
Fields Modifier and Type Field Description private static charCLASSPATH_RESOURCE_PATH_SEPARATORstatic java.lang.StringDEFAULT_PACKAGE_NAMEprivate static charPACKAGE_SEPARATOR_CHAR
-
Constructor Summary
Constructors Constructor Description ResourceUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.StringpackageName(java.lang.String classpathResourceName)(package private) static java.util.function.Predicate<org.junit.platform.commons.io.Resource>packageName(java.util.function.Predicate<java.lang.String> packageFilter)Match resources against a package filter.
-
-
-
Field Detail
-
DEFAULT_PACKAGE_NAME
public static final java.lang.String DEFAULT_PACKAGE_NAME
- See Also:
- Constant Field Values
-
CLASSPATH_RESOURCE_PATH_SEPARATOR
private static final char CLASSPATH_RESOURCE_PATH_SEPARATOR
- See Also:
- Constant Field Values
-
PACKAGE_SEPARATOR_CHAR
private static final char PACKAGE_SEPARATOR_CHAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
packageName
static java.util.function.Predicate<org.junit.platform.commons.io.Resource> packageName(java.util.function.Predicate<java.lang.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.
-
packageName
private static java.lang.String packageName(java.lang.String classpathResourceName)
-
-