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_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterPlease use@Disabledinstead.Please migrate to Jupiter extensions and use@Disabledinstead.Please migrate to Jupiter extensions.Please useAssertions.assertThrows(Class, Executable)instead.Please use@AutoCloseinstead.Please implementAfterTestExecutionCallbackinstead.
-
Deprecated InterfacesInterfaceDescriptionPlease extend
AutoCloseabledirectly.
-
Deprecated ClassesClassDescriptionPlease use
@Disabledinstead.Please useAssertions.assertThrows(Class, Executable)instead.Please use@AutoCloseinstead.Please implementAfterTestExecutionCallbackinstead.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
@Disabledinstead.Please migrate to Jupiter extensions.
-
Deprecated FieldsFieldDescriptionPlease reference
ParameterizedInvocationConstants.ARGUMENT_SET_NAME_OR_ARGUMENTS_WITH_NAMES_PLACEHOLDERinstead.Please referenceParameterizedInvocationConstants.ARGUMENT_SET_NAME_PLACEHOLDERinstead.Please referenceParameterizedInvocationConstants.ARGUMENTS_PLACEHOLDERinstead.Please referenceParameterizedInvocationConstants.ARGUMENTS_WITH_NAMES_PLACEHOLDERinstead.Please referenceParameterizedInvocationConstants.DEFAULT_DISPLAY_NAMEinstead.Please referenceParameterizedInvocationConstants.DISPLAY_NAME_PLACEHOLDERinstead.Please referenceParameterizedInvocationConstants.INDEX_PLACEHOLDERinstead.
-
Deprecated MethodsMethodDescriptionin favor of
JRE.currentJre()Please useExtensionContext.Store.computeIfAbsent(Class)instead.Please useExtensionContext.Store.computeIfAbsent(Object, Function)instead.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 replacementPlease useNamespacedHierarchicalStore.computeIfAbsent(Object, Object, Function)instead.Please useNamespacedHierarchicalStore.computeIfAbsent(Object, Object, Function, Class)instead.Please useLauncher.execute(LauncherExecutionRequest)instead.Please useLauncher.execute(LauncherExecutionRequest)instead.
-
Deprecated Constructors
-
Deprecated Enum ConstantsEnum ConstantDescriptionNo longer supported at runtime; please use
JRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterNo longer supported at runtime; please useJRE.JAVA_17or laterThis behavior will be removed from future versions of JUnit andTestInstantiationAwareExtension.ExtensionContextScope.TEST_METHODwill 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_PLACEHOLDERinstead.Please referenceParameterizedInvocationConstants.ARGUMENT_SET_NAME_PLACEHOLDERinstead.Please referenceParameterizedInvocationConstants.ARGUMENTS_PLACEHOLDERinstead.Please referenceParameterizedInvocationConstants.ARGUMENTS_WITH_NAMES_PLACEHOLDERinstead.Please referenceParameterizedInvocationConstants.DEFAULT_DISPLAY_NAMEinstead.Please referenceParameterizedInvocationConstants.DISPLAY_NAME_PLACEHOLDERinstead.Please referenceParameterizedInvocationConstants.INDEX_PLACEHOLDERinstead.