Deprecated API
Contents
- Interfaces
- Classes
- Enum Classes
- Exception Classes
- Annotation Interfaces
- Fields
- Methods
- Constructors
- Enum Constants
- Annotation Interface Elements
-
Deprecated InterfacesInterfaceDescriptionPlease extend
AutoCloseabledirectly.Please useParameterInfoinsteadPlease useResourceinstead.Please implementOutputDirectoryCreatorinstead
-
Deprecated ClassesClassDescriptionUse
MediaTypeinstead.as of JUnit Jupiter 5.7 in favor ofMethodOrderer.MethodName; to be removed in 6.0UseUnrecoverableExceptionsinstead.Please useEngineDiscoveryRequestResolverinstead.UseLegacyReportingUtilsinstead.since 1.8, in favor of the@Suitesupport provided by thejunit-platform-suite-enginemodule; 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
@Suitesupport provided by thejunit-platform-suite-enginemodule; to be removed in JUnit Platform 2.0
-
Deprecated FieldsFieldDescriptionUse
MediaType.APPLICATION_JSONinstead.Please referenceParameterizedInvocationConstants.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.Please useParameterInfo.KEYinsteadPlease useParameterInfo.NAMESPACEinstead
-
Deprecated MethodsMethodDescriptionin favor of
JRE.currentJre()UseTestReporter.publishFile(Path, MediaType)instead.Please implementAnnotationBasedArgumentsProvider.provideArguments(ParameterDeclarations, ExtensionContext, Annotation)instead.Please implementArgumentsProvider.provideArguments(ParameterDeclarations, ExtensionContext)instead.Please useParameterInfo.get(ExtensionContext)insteadUseAnnotationSupport.findAnnotation(AnnotatedElement, Class)(forSearchOption.DEFAULT) orAnnotationSupport.findAnnotation(Class, Class, List)(forSearchOption.INCLUDE_ENCLOSING_CLASSES) insteadPlease useResourceSupport.findAllResourcesInClasspathRoot(URI, ResourceFilter)insteadPlease useResourceSupport.findAllResourcesInModule(String, ResourceFilter)insteadPlease useResourceSupport.findAllResourcesInPackage(String, ResourceFilter)insteadPlease useReflectionSupport.tryToLoadClass(String)instead.Please useResourceSupport.streamAllResourcesInClasspathRoot(URI, ResourceFilter)insteadPlease useResourceSupport.streamAllResourcesInModule(String, ResourceFilter)insteadPlease useResourceSupport.streamAllResourcesInPackage(String, ResourceFilter)insteadPlease useResourceSupport.tryToGetResources(String)insteadPlease useResourceSupport.tryToGetResources(String, ClassLoader)insteadPlease implementClasspathScanner.scanForResourcesInClasspathRoot(URI, ResourceFilter)insteadPlease implementClasspathScanner.scanForResourcesInPackage(String, ResourceFilter)insteadPlease 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()Please use {ClasspathResourceSelector.getResources()} instead.Please useDiscoverySelectors.selectClasspathResourceByName(Set)instead.since 1.10 in favor ofMethodSelector.getParameterTypeNames()since 1.10 in favor orNestedMethodSelector.getParameterTypeNames()Please useEngineDiscoveryRequest.getOutputDirectoryCreator()insteadwithout replacementPlease useExecutionRequest.getOutputDirectoryCreator()insteadPlease useEngineDiscoveryRequestResolverinstead.Please useEngineDiscoveryRequestResolverinstead.Calling this method is no longer supported and will throw an exception.Please useTestPlan.getOutputDirectoryCreator()insteadPlease useEngineTestKit.Builder.filters(Filter...)instead.Please useEngineTestKit.Builder.outputDirectoryCreator(OutputDirectoryCreator)insteadPlease useEngineTestKit.execute(String, LauncherDiscoveryRequest)instead.Please useEngineTestKit.execute(TestEngine, LauncherDiscoveryRequest)instead.
-
Deprecated ConstructorsConstructorDescriptionwithout replacement because it's an internal API.
-
Deprecated Enum ConstantsEnum ConstantDescriptionThis behavior will be removed from future versions of JUnit, and
TestInstantiationAwareExtension.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.