Deprecated API
Contents
- Classes
- Enum Classes
- Exception Classes
- Annotation Interfaces
- Fields
- Methods
- Constructors
- Enum Constants
- Annotation Interface Elements
-
Deprecated ClassesClassDescriptionas of JUnit Jupiter 5.7 in favor of
MethodOrderer.MethodName
; to be removed in 6.0UseUnrecoverableExceptions
instead.Please useEngineDiscoveryRequestResolver
instead.UseLegacyReportingUtils
instead.since 1.8, in favor of the@Suite
support provided by thejunit-platform-suite-engine
module; to be removed in JUnit Platform 2.0
-
Deprecated Enum ClassesEnum ClassDescriptionbecause there is only a single non-deprecated search option left
-
Deprecated Exception Classes
-
Deprecated Annotation InterfacesAnnotation InterfaceDescriptionsince 1.8, in favor of the
@Suite
support provided by thejunit-platform-suite-engine
module; to be removed in JUnit Platform 2.0
-
Deprecated FieldsFieldDescriptionPlease reference
ParameterizedInvocationConstants.ARGUMENT_SET_NAME_OR_ARGUMENTS_WITH_NAMES_PLACEHOLDER
instead.Please referenceParameterizedInvocationConstants.ARGUMENT_SET_NAME_PLACEHOLDER
instead.Please referenceParameterizedInvocationConstants.ARGUMENTS_PLACEHOLDER
instead.Please referenceParameterizedInvocationConstants.ARGUMENTS_WITH_NAMES_PLACEHOLDER
instead.Please referenceParameterizedInvocationConstants.DEFAULT_DISPLAY_NAME
instead.Please referenceParameterizedInvocationConstants.DISPLAY_NAME_PLACEHOLDER
instead.Please referenceParameterizedInvocationConstants.INDEX_PLACEHOLDER
instead.
-
Deprecated MethodsMethodDescriptionin favor of
JRE.currentJre()
Please implementAnnotationBasedArgumentsProvider.provideArguments(ParameterDeclarations, ExtensionContext, Annotation)
instead.Please implementArgumentsProvider.provideArguments(ParameterDeclarations, ExtensionContext)
instead.UseAnnotationSupport.findAnnotation(AnnotatedElement, Class)
(forSearchOption.DEFAULT
) orAnnotationSupport.findAnnotation(Class, Class, List)
(forSearchOption.INCLUDE_ENCLOSING_CLASSES
) insteadPlease useReflectionSupport.tryToLoadClass(String)
instead.Please useReflectionUtils.tryToLoadClass(String)
instead.Please useReflectionUtils.tryToLoadClass(String, ClassLoader)
instead.Please useReflectionUtils.tryToReadFieldValue(Class, String, Object)
instead.Please useReflectionUtils.tryToReadFieldValue(Field)
instead.Please useReflectionUtils.tryToReadFieldValue(Field, Object)
instead.as of JUnit Platform 1.9 in favor ofConfigurationParameters.keySet()
since 1.10 in favor ofMethodSelector.getParameterTypeNames()
since 1.10 in favor orNestedMethodSelector.getParameterTypeNames()
Please useEngineDiscoveryRequestResolver
instead.Please useEngineDiscoveryRequestResolver
instead.Calling this method is no longer supported and will throw an exception.Please useEngineTestKit.Builder.filters(Filter...)
instead.Please useEngineTestKit.execute(String, LauncherDiscoveryRequest)
instead.Please useEngineTestKit.execute(TestEngine, LauncherDiscoveryRequest)
instead.
-
Deprecated ConstructorsConstructorDescription
-
Deprecated Enum ConstantsEnum ConstantDescriptionThis behavior will be removed from future versions of JUnit and
TestInstantiationAwareExtension.ExtensionContextScope.TEST_METHOD
will become the default.because it is preferable to inspect the runtime enclosing types of a class rather than where they are declared.
-
Deprecated Annotation Interface ElementsAnnotation Interface ElementDescriptionPlease reference
ParameterizedInvocationConstants.ARGUMENT_SET_NAME_OR_ARGUMENTS_WITH_NAMES_PLACEHOLDER
instead.Please referenceParameterizedInvocationConstants.ARGUMENT_SET_NAME_PLACEHOLDER
instead.Please referenceParameterizedInvocationConstants.ARGUMENTS_PLACEHOLDER
instead.Please referenceParameterizedInvocationConstants.ARGUMENTS_WITH_NAMES_PLACEHOLDER
instead.Please referenceParameterizedInvocationConstants.DEFAULT_DISPLAY_NAME
instead.Please referenceParameterizedInvocationConstants.DISPLAY_NAME_PLACEHOLDER
instead.Please referenceParameterizedInvocationConstants.INDEX_PLACEHOLDER
instead.