A B C D E F G H I J L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addListener(LogRecordListener) - Static method in class org.junit.platform.commons.logging.LoggerFactory
-
Add the supplied
LogRecordListenerto the set of registered listeners. - andThen(Function<V, Try<U>>) - Method in class org.junit.platform.commons.function.Try
-
If this
Tryis a success, apply the supplied function to its value and return the resultingTry; if thisTryis a failure, do nothing. - andThenTry(Try.Transformer<V, U>) - Method in class org.junit.platform.commons.function.Try
-
If this
Tryis a success, apply the supplied transformer to its value and return a new successful or failedTrydepending on the transformer's outcome; if thisTryis a failure, do nothing. - AnnotationSupport - Class in org.junit.platform.commons.support
-
AnnotationSupportprovides static utility methods for common tasks regarding annotations — for example, checking if a class, method, or field is annotated with a particular annotation; finding annotations on a given class, method, or field; finding fields or methods annotated with a particular annotation, etc. - 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
- apply(S) - Method in interface org.junit.platform.commons.function.Try.Transformer
-
Apply this transformer to the supplied value.
- 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
-
Deprecated.Use
UnrecoverableExceptionsinstead. - BOTTOM_UP - org.junit.platform.commons.support.HierarchyTraversalMode
-
Traverse the hierarchy using bottom-up semantics.
- BOTTOM_UP - org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode
-
Traverse the hierarchy using bottom-up semantics.
C
- call(Callable<V>) - Static method in class org.junit.platform.commons.function.Try
-
Call the supplied
Callableand return a successfulTrythat contains the returned value or, in case an exception was thrown, a failedTrythat contains the exception. - ClassFilter - Class in org.junit.platform.commons.util
-
Class-related predicate used by reflection utilities.
- ClassLoaderUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with ClassLoader and associated tasks.
- ClassNamePatternFilterUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for creating filters based on class names.
- ClassSupport - Class in org.junit.platform.commons.support
-
ClassSupportprovides static utility methods for common tasks regarding classes — for example, generating a comma-separated list of fully qualified class names for a set of supplied classes. - ClassUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with
classes. - clear() - Method in class org.junit.platform.commons.logging.LogRecordListener
-
Clear all existing
log recordsthat have been submitted to this listener by the current thread. - 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
predicateistrue. - condition(boolean, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
predicateistrue. - config(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the provided
Throwableand message from the providedmessageSupplierat config level. - config(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided
messageSupplierat config level. - containsIsoControlCharacter(String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Determine if the supplied
Stringcontains any ISO control characters. - containsNoNullElements(T[], String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied array contains no
nullelements. - containsNoNullElements(T[], Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied array contains no
nullelements. - containsNoNullElements(T, String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied collection contains no
nullelements. - containsNoNullElements(T, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied collection contains no
nullelements. - containsWhitespace(String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Determine if the supplied
Stringcontains any whitespace characters.
D
- DEACTIVATE_ALL_PATTERN - Static variable in class org.junit.platform.commons.util.ClassNamePatternFilterUtils
- debug(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the provided
Throwableand message from the providedmessageSupplierat debug level. - debug(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided
messageSupplierat debug level. - defaultToString(Object) - Static method in class org.junit.platform.commons.util.StringUtils
-
Convert the supplied
Objectto a defaultStringrepresentation using the following algorithm. - doesNotContainIsoControlCharacter(String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Determine if the supplied
Stringdoes not contain any ISO control characters. - doesNotContainWhitespace(String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Determine if the supplied
Stringdoes not contain any whitespace characters.
E
- error(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the provided
Throwableand message from the providedmessageSupplierat error level. - error(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided
messageSupplierat error level. - ExceptionUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with exceptions.
- excludeMatchingClasses(String) - Static method in class org.junit.platform.commons.util.ClassNamePatternFilterUtils
-
Create a
Predicatethat can be used to exclude (i.e., filter out) objects of typeTwhose fully qualified class names match any of the supplied patterns.
F
- failure(Exception) - Static method in class org.junit.platform.commons.function.Try
-
Convert the supplied exception into a failed
Try. - findAllClassesInClasspathRoot(URI, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find all classes in the supplied classpath
rootthat match the specifiedclassFilterandclassNameFilterpredicates. - findAllClassesInClasspathRoot(URI, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findAllClassesInClasspathRoot(URI, ClassFilter) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findAllClassesInModule(String, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find all classes in the supplied
moduleNamethat match the specifiedclassFilterandclassNameFilterpredicates. - findAllClassesInModule(String, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findAllClassesInModule(String, ClassFilter) - Static method in class org.junit.platform.commons.util.ModuleUtils
-
Find all classes for the given module name.
- findAllClassesInModule(String, ClassFilter) - 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 in the supplied
basePackageNamethat match the specifiedclassFilterandclassNameFilterpredicates. - findAllClassesInPackage(String, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findAllClassesInPackage(String, ClassFilter) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findAllNonSystemBootModuleNames() - Static method in class org.junit.platform.commons.util.ModuleUtils
-
Find all non-system boot modules names.
- findAnnotatedFields(Class<?>, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find all fields of the supplied class or interface that are annotated or meta-annotated with the specified
annotationType, using top-down search semantics within the type hierarchy. - findAnnotatedFields(Class<?>, Class<? extends Annotation>, Predicate<Field>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
-
Find all fields of the supplied class or interface that are annotated or meta-annotated with the specified
annotationTypeand match the specifiedpredicate, using top-down search semantics within the type hierarchy. - findAnnotatedFields(Class<?>, Class<? extends Annotation>, Predicate<Field>, HierarchyTraversalMode) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find all fields of the supplied class or interface that are annotated or meta-annotated with the specified
annotationTypeand match the specifiedpredicate, using the supplied hierarchy traversal mode. - findAnnotatedFields(Class<?>, Class<? extends Annotation>, Predicate<Field>, ReflectionUtils.HierarchyTraversalMode) - Static method in class org.junit.platform.commons.util.AnnotationUtils
-
Find all fields of the supplied class or interface that are annotated or meta-annotated with the specified
annotationTypeand match the specifiedpredicate. - findAnnotatedFieldValues(Class<?>, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find the values of all static fields of the supplied class or interface that are annotated or meta-annotated with the specified
annotationType, using top-down search semantics within the type hierarchy. - findAnnotatedFieldValues(Class<?>, Class<? extends Annotation>, Class<T>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find the values of all static fields of the supplied class or interface that are declared to be of the specified
fieldTypeand are annotated or meta-annotated with the specifiedannotationType, using top-down search semantics within the type hierarchy. - findAnnotatedFieldValues(Object, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find the values of all non-static fields of the supplied
instancethat are annotated or meta-annotated with the specifiedannotationType, using top-down search semantics within the type hierarchy. - findAnnotatedFieldValues(Object, Class<? extends Annotation>, Class<T>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find the values of all non-static fields of the supplied
instancethat are declared to be of the specifiedfieldTypeand are annotated or meta-annotated with the specifiedannotationType, using top-down search semantics within the type hierarchy. - 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
annotationTypethat is either directly present, meta-present, or indirectly present on the suppliedelement. - findAnnotation(AnnotatedElement, Class<A>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
- findAnnotation(Optional<? extends AnnotatedElement>, Class<A>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find the first annotation of
annotationTypethat is either present or meta-present on the supplied optionalelement. - findAnnotation(Optional<? extends AnnotatedElement>, Class<A>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
- findConstructors(Class<?>, Predicate<Constructor<?>>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Find all constructors in the supplied class that match the supplied predicate.
- findFields(Class<?>, Predicate<Field>, HierarchyTraversalMode) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find all fields of the supplied class or interface that match the specified
predicate. - findFields(Class<?>, Predicate<Field>, ReflectionUtils.HierarchyTraversalMode) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findMethod(Class<?>, String, Class<?>...) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find the first
Methodof 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.util.ReflectionUtils
- findMethod(Class<?>, String, String) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find the first
Methodof 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
- 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>, 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>, 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 within the supplied class, or inherited by the supplied class, that conform to the supplied 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
publicfields of the supplied class or interface that are declared to be of the specifiedfieldTypeand are annotated or meta-annotated with the specifiedannotationType. - 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 the supplied
annotationTypethat are either present, indirectly present, or meta-present on the suppliedAnnotatedElement. - findRepeatableAnnotations(AnnotatedElement, Class<A>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
- findRepeatableAnnotations(Optional<? extends AnnotatedElement>, Class<A>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find all repeatable annotations of the supplied
annotationTypethat are either present, indirectly present, or meta-present on the supplied optionalelement. - findRepeatableAnnotations(Optional<? extends 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
- get() - Method in class org.junit.platform.commons.function.Try
-
If this
Tryis a success, get the contained value; if thisTryis a failure, throw the contained exception. - 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<?>, 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
Optionalif the attribute was not found. - getAttribute(Class<?>, Function<Package, String>) - Static method in class org.junit.platform.commons.util.PackageUtils
-
Get the package attribute for the supplied
typeusing the suppliedfunction. - getDeclaredConstructor(Class<T>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Get the sole declared, non-synthetic
Constructorfor the supplied class. - getDefaultClassLoader() - Static method in class org.junit.platform.commons.util.ClassLoaderUtils
- getFullyQualifiedMethodName(Class<?>, Method) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Build the fully qualified method name for the method described by the supplied class and method.
- 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
Loggerfor the specified class. - getModuleName(Class<?>) - Static method in class org.junit.platform.commons.util.ModuleUtils
-
Return the name of the module that the class or interface is a member of.
- getModuleVersion(Class<?>) - Static method in class org.junit.platform.commons.util.ModuleUtils
-
Return the raw version of the module that the class or interface is a member of.
- getOnlyElement(Collection<T>) - Static method in class org.junit.platform.commons.util.CollectionUtils
-
Read the only element of a collection of size 1.
- getOrThrow(Function<? super Exception, E>) - Method in class org.junit.platform.commons.function.Try
-
If this
Tryis a success, get the contained value; if thisTryis a failure, call the suppliedFunctionwith the contained exception and throw the resultingException. - getOutermostInstance(Object, Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Deprecated.Please discontinue use of this method since it relies on internal implementation details of the JDK that may not work in the future.
- getRequiredMethod(Class<?>, String, Class<?>...) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Find the first
Methodof 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. - 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
- ifFailure(Consumer<Exception>) - Method in class org.junit.platform.commons.function.Try
-
If this
Tryis a failure, call the suppliedConsumerwith the contained exception; otherwise, do nothing. - ifSuccess(Consumer<V>) - Method in class org.junit.platform.commons.function.Try
-
If this
Tryis a success, call the suppliedConsumerwith the contained value; otherwise, do nothing. - info(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the provided
Throwableand message from the providedmessageSupplierat info level. - info(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided
messageSupplierat 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.support.ModifierSupport
-
Determine if the supplied class is
abstract. - isAbstract(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isAbstract(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is
abstract. - 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
annotationTypeis either present or meta-present on the suppliedelement. - isAnnotated(AnnotatedElement, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
-
Determine if an annotation of
annotationTypeis either present or meta-present on the suppliedelement. - isAnnotated(Optional<? extends AnnotatedElement>, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Determine if an annotation of
annotationTypeis either present or meta-present on the supplied optionalelement. - isAnnotated(Optional<? extends AnnotatedElement>, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
-
Determine if an annotation of
annotationTypeis either present or meta-present on the supplied optionalelement. - 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 target type for the purpose of reflective method invocations.
- isBlank(String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Determine if the supplied
Stringis blank (i.e.,nullor consisting only of whitespace characters). - isDebugMode() - Static method in class org.junit.platform.commons.util.RuntimeUtils
-
Try to determine whether the VM was started in debug mode or not.
- isFinal(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is
final. - isFinal(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isFinal(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is
final. - isFinal(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isInnerClass(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Determine if the supplied class is an inner class (i.e., a non-static member class).
- isJavaPlatformModuleSystemAvailable() - Static method in class org.junit.platform.commons.util.ModuleUtils
-
Determine if the current Java runtime supports the Java Platform Module System.
- isMethodPresent(Class<?>, Predicate<Method>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Determine if a
Methodmatching the suppliedPredicateis 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. - isMultidimensionalArray(Object) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Determine if the supplied object is a multidimensional array.
- isNotBlank(String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Determine if the supplied
Stringis not blank. - isNotFinal(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is not
final. - isNotFinal(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isNotFinal(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is not
final. - isNotFinal(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isNotPrivate(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is not
private. - isNotPrivate(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isNotPrivate(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is not
private. - isNotPrivate(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isNotStatic(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is not
static. - isNotStatic(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isNotStatic(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is not
static. - isNotStatic(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isPrivate(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is
private. - isPrivate(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isPrivate(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is
private. - isPrivate(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isPublic(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is
public. - isPublic(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isPublic(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is
public. - isPublic(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isStatic(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is
static. - isStatic(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isStatic(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is
static. - isStatic(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
J
- JUnitException - Exception in org.junit.platform.commons
-
Base class for all
RuntimeExceptionsthrown 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
-
Deprecated.Please use
ReflectionSupport.tryToLoadClass(String)instead. - loadClass(String) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Deprecated.Please use
ReflectionUtils.tryToLoadClass(String)instead. - loadClass(String, ClassLoader) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Deprecated.Please use
ReflectionUtils.tryToLoadClass(String, ClassLoader)instead. - Logger - Interface in org.junit.platform.commons.logging
-
The
LoggerAPI serves as a simple logging facade forjava.util.logging(JUL). - LoggerFactory - Class in org.junit.platform.commons.logging
-
Factory for the
Loggerfacade for JUL. - LogRecordListener - Class in org.junit.platform.commons.logging
-
LogRecordListeneris only intended for testing purposes within JUnit's own test suite. - LogRecordListener() - Constructor for class org.junit.platform.commons.logging.LogRecordListener
- logRecordSubmitted(LogRecord) - Method in class org.junit.platform.commons.logging.LogRecordListener
-
Inform the listener of a
LogRecordthat was submitted to JUL for processing. - LruCache<K,V> - Class in org.junit.platform.commons.util
-
A simple LRU cache with a maximum size.
- LruCache(int) - Constructor for class org.junit.platform.commons.util.LruCache
-
Create a new LRU cache that maintains at most the supplied number of entries.
M
- makeAccessible(T) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- match(Class<?>) - Method in class org.junit.platform.commons.util.ClassFilter
-
Test class using the stored class predicate.
- match(String) - Method in class org.junit.platform.commons.util.ClassFilter
-
Test name using the stored name predicate.
- ModifierSupport - Class in org.junit.platform.commons.support
-
ModifierSupportprovides static utility methods for working with class and member modifiers — for example, to determine if a class or member is declared aspublic,private,abstract,static, etc. - ModuleUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with
java.lang.Moduleand friends. - ModuleUtils() - Constructor for class org.junit.platform.commons.util.ModuleUtils
N
- newInstance(Class<T>, Object...) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Create a new instance of the specified
Classby 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
Tby 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
Stringis not blank. - notBlank(String, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
Stringis not blank. - notEmpty(T[], String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied array is neither
nullnor empty. - notEmpty(T[], Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied array is neither
nullnor empty. - notEmpty(T, String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
Collectionis neithernullnor empty. - notEmpty(T, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
Collectionis neithernullnor empty. - notNull(T, String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
Objectis notnull. - notNull(T, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
Objectis notnull. - nullSafeToString(Class<?>) - Static method in class org.junit.platform.commons.util.ClassUtils
-
Get the fully qualified name of the supplied class.
- nullSafeToString(Class<?>...) - Static method in class org.junit.platform.commons.support.ClassSupport
-
Generate a comma-separated list of fully qualified class names for the supplied classes.
- 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(Object) - Static method in class org.junit.platform.commons.util.StringUtils
-
Convert the supplied
Objectto aStringusing the following algorithm. - nullSafeToString(Function<? super Class<?>, ? extends String>, Class<?>...) - Static method in class org.junit.platform.commons.support.ClassSupport
-
Generate a comma-separated list of mapped values 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.
O
- of(Predicate<Class<?>>) - Static method in class org.junit.platform.commons.util.ClassFilter
-
Create a
ClassFilterinstance that accepts all names but filters classes. - of(Predicate<String>, Predicate<Class<?>>) - Static method in class org.junit.platform.commons.util.ClassFilter
-
Create a
ClassFilterinstance that filters by names and classes. - orElse(Supplier<Try<V>>) - Method in class org.junit.platform.commons.function.Try
-
If this
Tryis a failure, call the supplied supplier and return the resultingTry; if thisTryis a success, do nothing. - orElseTry(Callable<V>) - Method in class org.junit.platform.commons.function.Try
-
If this
Tryis a failure, call the supplied action and return a new successful or failedTrydepending on the action's outcome; if thisTryis a success, do nothing. - org.junit.platform.commons - package org.junit.platform.commons
-
Common APIs and support utilities for the JUnit Platform.
- org.junit.platform.commons.annotation - package org.junit.platform.commons.annotation
-
Common annotations for the JUnit Platform.
- org.junit.platform.commons.function - package org.junit.platform.commons.function
-
Maintained functional interfaces and support classes.
- 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.
- parseFullyQualifiedMethodName(String) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Parse the supplied fully qualified method name into a 3-element
String[]with the following content. - 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
-
Thrown if a precondition is violated.
- PreconditionViolationException - Exception in org.junit.platform.commons.util
-
Deprecated.Use PreconditionViolationException instead.
- PreconditionViolationException(String) - Constructor for exception org.junit.platform.commons.PreconditionViolationException
- PreconditionViolationException(String) - Constructor for exception org.junit.platform.commons.util.PreconditionViolationException
-
Deprecated.
- PreconditionViolationException(String, Throwable) - Constructor for exception org.junit.platform.commons.PreconditionViolationException
- PreconditionViolationException(String, Throwable) - Constructor for exception org.junit.platform.commons.util.PreconditionViolationException
-
Deprecated.
R
- readFieldValue(Class<T>, String, T) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Deprecated.Please use
ReflectionUtils.tryToReadFieldValue(Class, String, Object)instead. - readFieldValue(Field) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Deprecated.Please use
ReflectionUtils.tryToReadFieldValue(Field)instead. - readFieldValue(Field, Object) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Deprecated.Please use
ReflectionUtils.tryToReadFieldValue(Field, Object)instead. - readFieldValues(List<Field>, Object) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Read the values of the supplied fields, making each field accessible if necessary and masking any checked exception as an unchecked exception.
- readFieldValues(List<Field>, Object, Predicate<Field>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Read the values of the supplied fields, making each field accessible if necessary, masking any checked exception as an unchecked exception, and filtering out fields that do not pass the supplied
predicate. - readStackTrace(Throwable) - Static method in class org.junit.platform.commons.util.ExceptionUtils
-
Read the stacktrace of the supplied
Throwableinto a String. - ReflectionSupport - Class in org.junit.platform.commons.support
-
ReflectionSupportprovides static utility methods for common reflection tasks — for example, scanning for classes in the class-path or module-path, loading classes, finding methods, invoking methods, etc. - 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.
- removeEldestEntry(Map.Entry<K, V>) - Method in class org.junit.platform.commons.util.LruCache
- removeListener(LogRecordListener) - Static method in class org.junit.platform.commons.logging.LoggerFactory
-
Remove the supplied
LogRecordListenerfrom the set of registered listeners. - replaceIsoControlCharacters(String, String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Replace all ISO control characters in the supplied
String. - replaceWhitespaceCharacters(String, String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Replace all whitespace characters in the supplied
String. - rethrowIfBlacklisted(Throwable) - Static method in class org.junit.platform.commons.util.BlacklistedExceptions
-
Deprecated.
- rethrowIfUnrecoverable(Throwable) - Static method in class org.junit.platform.commons.util.UnrecoverableExceptions
-
Rethrow the supplied
exceptionif it is unrecoverable. - returnsVoid(Method) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- RuntimeUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with
Runtime,RuntimeMXBean, etc.
S
- stream() - Method in class org.junit.platform.commons.logging.LogRecordListener
-
Get a stream of
log recordsthat have been submitted to this listener by the current thread. - stream(Class<?>) - Method in class org.junit.platform.commons.logging.LogRecordListener
-
Get a stream of
log recordsthat have been submitted to this listener by the current thread for the logger name equal to the name of the given class. - stream(Class<?>, Level) - Method in class org.junit.platform.commons.logging.LogRecordListener
-
Get a stream of
log recordsthat have been submitted to this listener by the current thread for the logger name equal to the name of the given class at the given log level. - stream(Level) - Method in class org.junit.platform.commons.logging.LogRecordListener
-
Get a stream of
log recordsthat have been submitted to this listener by the current thread at the given log level. - StringUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with
Strings,CharSequences, etc. - success(V) - Static method in class org.junit.platform.commons.function.Try
-
Convert the supplied value into a succeeded
Try.
T
- test(Class<?>) - Method in class org.junit.platform.commons.util.ClassFilter
- Testable - Annotation Type in org.junit.platform.commons.annotation
-
@Testableis 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. - toOptional() - Method in class org.junit.platform.commons.function.Try
-
If this
Tryis a failure, return an emptyOptional; if thisTryis a success, wrap the contained value usingOptional.ofNullable(Object). - TOP_DOWN - org.junit.platform.commons.support.HierarchyTraversalMode
-
Traverse the hierarchy using top-down semantics.
- TOP_DOWN - org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode
-
Traverse the hierarchy using top-down semantics.
- toSet(T[]) - Static method in class org.junit.platform.commons.util.CollectionUtils
-
Convert the supplied array of values to a
Set. - 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(Class<?>) - Constructor for class org.junit.platform.commons.util.ToStringBuilder
- ToStringBuilder(Object) - Constructor for class org.junit.platform.commons.util.ToStringBuilder
- ToStringBuilder(String) - Constructor for class org.junit.platform.commons.util.ToStringBuilder
- toUnmodifiableList() - Static method in class org.junit.platform.commons.util.CollectionUtils
-
Return a
Collectorthat accumulates the input elements into a new unmodifiable list, in encounter order. - trace(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the provided
Throwableand message from the providedmessageSupplierat trace level. - trace(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided
messageSupplierat trace level. - Try<V> - Class in org.junit.platform.commons.function
-
A container object which may either contain a nullable value in case of success or an exception in case of failure.
- Try.Transformer<S,T> - Interface in org.junit.platform.commons.function
-
A transformer for values of type
Sto typeT. - tryToGetMethod(Class<?>, String, Class<?>...) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Try to get the
Methodin the specified class with the specified name and parameter types. - tryToLoadClass(String) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Try to load a class by its primitive name or fully qualified name, using the default
ClassLoader. - tryToLoadClass(String) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- tryToLoadClass(String, ClassLoader) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Try to load a class by its primitive name or fully qualified name, using the supplied
ClassLoader. - tryToReadFieldValue(Class<T>, String, T) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Try to read the value of a potentially inaccessible or nonexistent field.
- tryToReadFieldValue(Field) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Try to read the value of a potentially inaccessible static field.
- tryToReadFieldValue(Field, Object) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Try to read the value of a potentially inaccessible field.
- tryToReadFieldValue(Field, Object) - Static method in class org.junit.platform.commons.util.ReflectionUtils
U
- UnrecoverableExceptions - Class in org.junit.platform.commons.util
-
Internal utilities for working with unrecoverable exceptions.
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(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the provided
Throwableand message from the providedmessageSupplierat warning level. - warn(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided
messageSupplierat 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.
All Classes All Packages