Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionJUnit 4 is in maintenance mode. Upgrade to JUnit 5+ and switch to the
cucumber-junit-platform-engine.JUnit 4 is in maintenance mode. Upgrade to JUnit 5 and switch to thecucumber-junit-platform-engine.Since v3.6.0 Maven Surefire uses the JUnit Platform to run TestNG. Cucumber support the JUnit Platform directly. Since v9.4.0 Gradle supports resource based test on the JUnit Platform. This leaves little reason to support a dedicated TestNG runner.Please switch to cucumber-junit-platform-engine. If there are missing features that prevent you from upgrading please create an issue.
Since v3.6.0 Maven Surefire uses the JUnit Platform to run TestNG. Cucumber support the JUnit Platform directly. Since v9.4.0 Gradle supports resource based test on the JUnit Platform. This leaves little reason to support a dedicated TestNG runner.Please switch to cucumber-junit-platform-engine. If there are missing features that prevent you from upgrading please create an issue.
Since v3.6.0 Maven Surefire uses the JUnit Platform to run TestNG. Cucumber support the JUnit Platform directly. Since v9.4.0 Gradle supports resource based test on the JUnit Platform. This leaves little reason to support a dedicated TestNG runner.Please switch to cucumber-junit-platform-engine. If there are missing features that prevent you from upgrading please create an issue.
-
Deprecated InterfacesInterfaceDescriptionbackend with scenario scoped glue should hide this complexity from Cucumber by updating the registered glue during
Backend.buildWorld()and transparently dispose of any closures duringBackend.disposeWorld().
-
Deprecated ClassesClassDescriptionuse
Maininstead.for removal, use messages + query.JUnit 4 is in maintenance mode. Upgrade to JUnit 5+ and switch to thecucumber-junit-platform-engine.Since v3.6.0 Maven Surefire uses the JUnit Platform to run TestNG. Cucumber support the JUnit Platform directly. Since v9.4.0 Gradle supports resource based test on the JUnit Platform. This leaves little reason to support a dedicated TestNG runner.Please switch to cucumber-junit-platform-engine. If there are missing features that prevent you from upgrading please create an issue.
Since v3.6.0 Maven Surefire uses the JUnit Platform to run TestNG. Cucumber support the JUnit Platform directly. Since v9.4.0 Gradle supports resource based test on the JUnit Platform. This leaves little reason to support a dedicated TestNG runner.Please switch to cucumber-junit-platform-engine. If there are missing features that prevent you from upgrading please create an issue.
-
Deprecated Annotation InterfacesAnnotation InterfaceDescriptionJUnit 4 is in maintenance mode. Upgrade to JUnit 5 and switch to the
cucumber-junit-platform-engine.Please use the JUnit Platform Suite to run Cucumber in combination with Surefire or Gradle. E.g:package com.example; import org.junit.platform.suite.api.ConfigurationParameter; import org.junit.platform.suite.api.SelectPackages; import org.junit.platform.suite.api.Suite; import static io.cucumber.junit.platform.engine.Constants.GLUE_PROPERTY_NAME; @Suite @SelectPackages("com.example") @ConfigurationParameter( key = GLUE_PROPERTY_NAME, value = "com.example") final class RunCucumberTest { }Since v3.6.0 Maven Surefire uses the JUnit Platform to run TestNG. Cucumber support the JUnit Platform directly. Since v9.4.0 Gradle supports resource based test on the JUnit Platform. This leaves little reason to support a dedicated TestNG runner.Please switch to cucumber-junit-platform-engine. If there are missing features that prevent you from upgrading please create an issue.
-
Deprecated Fields
-
Deprecated MethodsMethodDescriptionuse
Backend.loadGlue(Glue, GlueDiscoveryRequest)instead.useCucumberInvocationTargetException.getCause()instead.superseded byDataTableFormatter.formatTo(DataTable, Appendable)superseded byDataTableFormatter.formatTo(DataTable, StringBuilder)useDocStringArgument.getMediaType()instead.use#getStep()please useStatus.isOk()}useStep.getKeyword()insteaduseTestCase.getLocation()instead.use other accessor to reconstruct the scenario designation