Skip navigation links
junit-platform-commons
A B C D E F G H I J L M N O P R S T V W 

A

AnnotationSupport - Class in org.junit.platform.commons.support
Common annotation support.
AnnotationUtils - Class in org.junit.platform.commons.util
Collection of utilities for working with annotations.
append(String, Object) - Method in class org.junit.platform.commons.util.ToStringBuilder
 
assertPackageNameIsValid(String) - Static method in class org.junit.platform.commons.util.PackageUtils
Assert that the supplied package name is valid in terms of Java syntax.

B

BlacklistedExceptions - Class in org.junit.platform.commons.util
Internal utilities for working with blacklisted exceptions.

C

ClassLoaderUtils - Class in org.junit.platform.commons.util
Collection of utilities for working with ClassLoader and associated tasks.
ClassUtils - Class in org.junit.platform.commons.util
Collection of utilities for working with classes.
CollectionUtils - Class in org.junit.platform.commons.util
Collection of utilities for working with Collections.
condition(boolean, String) - Static method in class org.junit.platform.commons.util.Preconditions
Assert that the supplied predicate is true.
condition(boolean, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
Assert that the supplied predicate is true.
config(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
Log the message from the provided messageSupplier at config level.
config(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
Log the provided Throwable and message from the provided messageSupplier at config level.
containsIsoControlCharacter(String) - Static method in class org.junit.platform.commons.util.StringUtils
Determine if the supplied String contains any ISO control characters.
containsNoNullElements(T[], String) - Static method in class org.junit.platform.commons.util.Preconditions
Assert that the supplied array contains no null elements.
containsNoNullElements(T[], Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
Assert that the supplied array contains no null elements.
containsNoNullElements(T, String) - Static method in class org.junit.platform.commons.util.Preconditions
Assert that the supplied collection contains no null elements.
containsNoNullElements(T, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
Assert that the supplied collection contains no null elements.
containsWhitespace(String) - Static method in class org.junit.platform.commons.util.StringUtils
Determine if the supplied String contains any whitespace characters.

D

debug(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
Log the message from the provided messageSupplier at debug level.
debug(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
Log the provided Throwable and message from the provided messageSupplier at debug level.
doesNotContainIsoControlCharacter(String) - Static method in class org.junit.platform.commons.util.StringUtils
Determine if the supplied String does not contain any ISO control characters.
doesNotContainWhitespace(String) - Static method in class org.junit.platform.commons.util.StringUtils
Determine if the supplied String does not contain any whitespace characters.

E

error(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
Log the message from the provided messageSupplier at error level.
error(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
Log the provided Throwable and message from the provided messageSupplier at error level.
ExceptionUtils - Class in org.junit.platform.commons.util
Collection of utilities for working with exceptions.

F

findAllClassesInClasspathRoot(URI, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.support.ReflectionSupport
Find all classes of the supplied root URI that match the specified classTester and classNameFilter predicates.
findAllClassesInClasspathRoot(URI, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
findAllClassesInPackage(String, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.support.ReflectionSupport
Find all classes of the supplied basePackageName that match the specified classTester and classNameFilter predicates.
findAllClassesInPackage(String, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
findAnnotatedMethods(Class<?>, Class<? extends Annotation>, HierarchyTraversalMode) - Static method in class org.junit.platform.commons.support.AnnotationSupport
Find all methods of the supplied class or interface that are annotated or meta-annotated with the specified annotationType.
findAnnotatedMethods(Class<?>, Class<? extends Annotation>, ReflectionUtils.HierarchyTraversalMode) - Static method in class org.junit.platform.commons.util.AnnotationUtils
 
findAnnotation(AnnotatedElement, Class<A>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
Find the first annotation of annotationType that is either directly present, meta-present, or indirectly present on the supplied element.
findAnnotation(Optional<? extends AnnotatedElement>, Class<A>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
Find the first annotation of annotationType that is either present or meta-present on the supplied optional element.
findAnnotation(AnnotatedElement, Class<A>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
 
findMethod(Class<?>, String, String) - Static method in class org.junit.platform.commons.support.ReflectionSupport
Find the first Method of the supplied class or interface that meets the specified criteria, beginning with the specified class or interface and traversing up the type hierarchy until such a method is found or the type hierarchy is exhausted.
findMethod(Class<?>, String, Class<?>...) - Static method in class org.junit.platform.commons.support.ReflectionSupport
Find the first Method of the supplied class or interface that meets the specified criteria, beginning with the specified class or interface and traversing up the type hierarchy until such a method is found or the type hierarchy is exhausted.
findMethod(Class<?>, String, String) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
findMethod(Class<?>, String, Class<?>...) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
findMethods(Class<?>, Predicate<Method>, HierarchyTraversalMode) - Static method in class org.junit.platform.commons.support.ReflectionSupport
Find all methods of the supplied class or interface that match the specified predicate.
findMethods(Class<?>, Predicate<Method>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
Find all methods of the supplied class or interface that match the specified predicate, using top-down search semantics within the type hierarchy.
findMethods(Class<?>, Predicate<Method>, ReflectionUtils.HierarchyTraversalMode) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
findNestedClasses(Class<?>, Predicate<Class<?>>) - Static method in class org.junit.platform.commons.support.ReflectionSupport
Find all nested classes of the given class conforming to the given predicate.
findNestedClasses(Class<?>, Predicate<Class<?>>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
findPublicAnnotatedFields(Class<?>, Class<?>, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
Find all public fields of the supplied class or interface that are of the specified fieldType and annotated or meta-annotated with the specified annotationType.
findPublicAnnotatedFields(Class<?>, Class<?>, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
 
findRepeatableAnnotations(AnnotatedElement, Class<A>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
Find all repeatable annotations of annotationType that are either present, indirectly present, or meta-present on the supplied AnnotatedElement.
findRepeatableAnnotations(AnnotatedElement, Class<A>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
 
FunctionUtils - Class in org.junit.platform.commons.util
Collection of utilities for working with Functions, Predicates, etc.

G

getAllAssignmentCompatibleClasses(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
Return all classes and interfaces that can be used as assignment types for instances of the specified Class, including itself.
getAllClasspathRootDirectories() - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
getAttribute(Class<?>, Function<Package, String>) - Static method in class org.junit.platform.commons.util.PackageUtils
Get the package attribute for the supplied type using the supplied function.
getAttribute(Class<?>, String) - Static method in class org.junit.platform.commons.util.PackageUtils
Get the value of the specified attribute name, specified as a string, or an empty Optional if the attribute was not found.
getDeclaredConstructor(Class<T>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
Get the sole declared Constructor for the supplied class.
getDefaultClassLoader() - Static method in class org.junit.platform.commons.util.ClassLoaderUtils
 
getDefaultValue(Annotation, String, Class<T>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
Get the default value of the named attribute from the supplied Annotation.
getFullyQualifiedMethodName(Class<?>, String, Class<?>...) - Static method in class org.junit.platform.commons.util.ReflectionUtils
Build the fully qualified method name for the method described by the supplied class, method name, and parameter types.
getLocation(Object) - Static method in class org.junit.platform.commons.util.ClassLoaderUtils
Get the location from which the supplied object's class was loaded.
getLogger(Class<?>) - Static method in class org.junit.platform.commons.logging.LoggerFactory
Get a Logger for the specified class.
getOnlyElement(Collection<T>) - Static method in class org.junit.platform.commons.util.CollectionUtils
Read the only element of a collection of size 1.
getOutermostInstance(Object, Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
Get the outermost instance of the required type, searching recursively through enclosing instances.
getWrapperType(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
Get the wrapper type for the supplied primitive type.

H

HierarchyTraversalMode - Enum in org.junit.platform.commons.support
Modes in which a hierarchy can be traversed — for example, when searching for methods or fields within a class hierarchy.

I

info(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
Log the message from the provided messageSupplier at info level.
info(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
Log the provided Throwable and message from the provided messageSupplier at info level.
invokeMethod(Method, Object, Object...) - Static method in class org.junit.platform.commons.support.ReflectionSupport
Invoke the supplied method, making it accessible if necessary and masking any checked exception as an unchecked exception.
invokeMethod(Method, Object, Object...) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
isAbstract(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
isAbstract(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
isAnnotated(AnnotatedElement, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
Determine if an annotation of annotationType is either present or meta-present on the supplied element.
isAnnotated(Optional<? extends AnnotatedElement>, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
Determine if an annotation of annotationType is either present or meta-present on the supplied optional element.
isAnnotated(AnnotatedElement, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
Determine if an annotation of annotationType is either present or meta-present on the supplied element.
isArray(Object) - Static method in class org.junit.platform.commons.util.ReflectionUtils
Determine if the supplied object is an array.
isAssignableTo(Object, Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
Determine if the supplied object can be assigned to the supplied type for the purpose of reflective method invocations.
isBlank(String) - Static method in class org.junit.platform.commons.util.StringUtils
Determine if the supplied String is blank (i.e., null or consisting only of whitespace characters).
isInnerClass(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
isMethodPresent(Class<?>, Predicate<Method>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
Determine if a Method matching the supplied Predicate is present within the type hierarchy of the specified class, beginning with the specified class or interface and traversing up the type hierarchy until such a method is found or the type hierarchy is exhausted.
isNotBlank(String) - Static method in class org.junit.platform.commons.util.StringUtils
Determine if the supplied String is not blank.
isPrivate(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
isPrivate(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
isPublic(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
isPublic(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
isStatic(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
isStatic(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 

J

JUnitException - Exception in org.junit.platform.commons
Base class for all RuntimeExceptions thrown by JUnit.
JUnitException(String) - Constructor for exception org.junit.platform.commons.JUnitException
 
JUnitException(String, Throwable) - Constructor for exception org.junit.platform.commons.JUnitException
 

L

loadClass(String) - Static method in class org.junit.platform.commons.support.ReflectionSupport
Load a class by its primitive name or fully qualified name, using the default ClassLoader.
loadClass(String) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
loadClass(String, ClassLoader) - Static method in class org.junit.platform.commons.util.ReflectionUtils
Load a class by its primitive name or fully qualified name, using the supplied ClassLoader.
loadMethod(String) - Static method in class org.junit.platform.commons.util.ReflectionUtils
Load a method by its fully qualified name.
Logger - Interface in org.junit.platform.commons.logging
The Logger API serves as a simple logging facade for java.util.logging (JUL).
LoggerFactory - Class in org.junit.platform.commons.logging
Factory for the Logger facade for JUL.

M

makeAccessible(T) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 

N

newInstance(Class<T>, Object...) - Static method in class org.junit.platform.commons.support.ReflectionSupport
Create a new instance of the specified Class by invoking the constructor whose argument list matches the types of the supplied arguments.
newInstance(Class<T>, Object...) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 
newInstance(Constructor<T>, Object...) - Static method in class org.junit.platform.commons.util.ReflectionUtils
Create a new instance of type T by invoking the supplied constructor with the supplied arguments.
notBlank(String, String) - Static method in class org.junit.platform.commons.util.Preconditions
Assert that the supplied String is not blank.
notBlank(String, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
Assert that the supplied String is not blank.
notEmpty(T[], String) - Static method in class org.junit.platform.commons.util.Preconditions
Assert that the supplied array is neither null nor empty.
notEmpty(T[], Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
Assert that the supplied array is neither null nor empty.
notEmpty(T, String) - Static method in class org.junit.platform.commons.util.Preconditions
Assert that the supplied Collection is neither null nor empty.
notEmpty(T, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
Assert that the supplied Collection is neither null nor empty.
notNull(T, String) - Static method in class org.junit.platform.commons.util.Preconditions
Assert that the supplied Object is not null.
notNull(T, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
Assert that the supplied Object is not null.
nullSafeToString(Class<?>...) - Static method in class org.junit.platform.commons.util.ClassUtils
Generate a comma-separated list of fully qualified class names for the supplied classes.
nullSafeToString(Function<? super Class<?>, ? extends String>, Class<?>...) - Static method in class org.junit.platform.commons.util.ClassUtils
Generate a comma-separated list of mapped values for the supplied classes.
nullSafeToString(Object) - Static method in class org.junit.platform.commons.util.StringUtils
Convert the supplied Object to a String using the following algorithm.

O

org.junit.platform.commons - package org.junit.platform.commons
Internal common library of JUnit.
org.junit.platform.commons.annotation - package org.junit.platform.commons.annotation
Common annotations for the JUnit Platform.
org.junit.platform.commons.logging - package org.junit.platform.commons.logging
Internal logging package.
org.junit.platform.commons.support - package org.junit.platform.commons.support
Maintained common support APIs provided by the JUnit Platform.
org.junit.platform.commons.util - package org.junit.platform.commons.util
Internal common utilities for JUnit.

P

PackageUtils - Class in org.junit.platform.commons.util
Collection of utilities for working with packages.
Preconditions - Class in org.junit.platform.commons.util
Collection of utilities for asserting preconditions for method and constructor arguments.
PreconditionViolationException - Exception in org.junit.platform.commons.util
Thrown if a precondition is violated.
PreconditionViolationException(String) - Constructor for exception org.junit.platform.commons.util.PreconditionViolationException
 
PreconditionViolationException(String, Throwable) - Constructor for exception org.junit.platform.commons.util.PreconditionViolationException
 

R

readFieldValue(Class<T>, String, T) - Static method in class org.junit.platform.commons.util.ReflectionUtils
Read the value of a potentially inaccessible field.
readStackTrace(Throwable) - Static method in class org.junit.platform.commons.util.ExceptionUtils
Read the stacktrace of the supplied Throwable into a String.
ReflectionSupport - Class in org.junit.platform.commons.support
Common reflection and classpath scanning support.
ReflectionUtils - Class in org.junit.platform.commons.util
Collection of utilities for working with the Java reflection APIs.
ReflectionUtils.HierarchyTraversalMode - Enum in org.junit.platform.commons.util
Modes in which a hierarchy can be traversed — for example, when searching for methods or fields within a class hierarchy.
rethrowIfBlacklisted(Throwable) - Static method in class org.junit.platform.commons.util.BlacklistedExceptions
Rethrow the supplied exception if it is blacklisted.
returnsVoid(Method) - Static method in class org.junit.platform.commons.util.ReflectionUtils
 

S

StringUtils - Class in org.junit.platform.commons.util
Collection of utilities for working with Strings, CharSequences, etc.

T

Testable - Annotation Type in org.junit.platform.commons.annotation
@Testable is used to signal to IDEs and tooling vendors that the annotated or meta-annotated element is testable.
throwAsUncheckedException(Throwable) - Static method in class org.junit.platform.commons.util.ExceptionUtils
Throw the supplied Throwable, masked as an unchecked exception.
toStream(Object) - Static method in class org.junit.platform.commons.util.CollectionUtils
Convert an object of one of the following supported types into a Stream.
toString() - Method in class org.junit.platform.commons.util.ToStringBuilder
 
ToStringBuilder - Class in org.junit.platform.commons.util
Simple builder for generating strings in custom implementations of toString().
ToStringBuilder(Object) - Constructor for class org.junit.platform.commons.util.ToStringBuilder
 
ToStringBuilder(Class<?>) - Constructor for class org.junit.platform.commons.util.ToStringBuilder
 
toUnmodifiableList() - Static method in class org.junit.platform.commons.util.CollectionUtils
Return a Collector that accumulates the input elements into a new unmodifiable list, in encounter order.
trace(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
Log the message from the provided messageSupplier at trace level.
trace(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
Log the provided Throwable and message from the provided messageSupplier at trace level.

V

valueOf(String) - Static method in enum org.junit.platform.commons.support.HierarchyTraversalMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.junit.platform.commons.support.HierarchyTraversalMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode
Returns an array containing the constants of this enum type, in the order they are declared.

W

warn(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
Log the message from the provided messageSupplier at warning level.
warn(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
Log the provided Throwable and message from the provided messageSupplier at warning level.
where(Function<T, V>, Predicate<? super V>) - Static method in class org.junit.platform.commons.util.FunctionUtils
Return a predicate that first applies the specified function and then tests the specified predicate against the result of the function.
A B C D E F G H I J L M N O P R S T V W 
Skip navigation links
junit-platform-commons