Deprecated API
Contents
- Terminally Deprecated
- Interfaces
- Classes
- Enum Classes
- Annotation Interfaces
- Fields
- Methods
- Constructors
- Enum Constants
- Annotation Interface Elements
-
Terminally Deprecated ElementsElementDescriptionNo longer supported at runtime; please use
JRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterPlease use@Disabled
instead.Please migrate to Jupiter extensions and use@Disabled
instead.Please migrate to Jupiter extensions.Please useAssertions.assertThrows(Class, Executable)
instead.Please use@AutoClose
instead.Please implementAfterTestExecutionCallback
instead.
-
Deprecated InterfacesInterfaceDescriptionPlease extend
AutoCloseable
directly.
-
Deprecated ClassesClassDescriptionPlease use
@Disabled
instead.Please useAssertions.assertThrows(Class, Executable)
instead.Please use@AutoClose
instead.Please implementAfterTestExecutionCallback
instead.Should only be used temporarily while migrating tests to JUnit Jupiter or another testing framework with native JUnit Platform supportShould only be used temporarily while migrating tests to JUnit Jupiter or another testing framework with native JUnit Platform support
-
Deprecated Enum ClassesEnum ClassDescriptionbecause there is only a single non-deprecated search option left
-
Deprecated Annotation InterfacesAnnotation InterfaceDescriptionPlease migrate to Jupiter extensions and use
@Disabled
instead.Please migrate to Jupiter extensions.
-
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
) insteadwithout replacement
-
Deprecated Constructors
-
Deprecated Enum ConstantsEnum ConstantDescriptionNo longer supported at runtime; please use
JRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterNo longer supported at runtime; please useJRE.JAVA_17
or laterThis behavior will be removed from future versions of JUnit andTestInstantiationAwareExtension.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.