diff --git a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletTester.java b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletTester.java index 43b7ee80a0d..5e1d5edab41 100644 --- a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletTester.java +++ b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ServletTester.java @@ -41,7 +41,8 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** - *
ServletTester should not be used.
+ *ServletTester is not best practice and may be deprecated and eventually + * removed in future Jetty versions.
*ServletTester is a just a wrapper around a {@link ServletContextHandler}, * with a {@link LocalConnector} to accept HTTP/1.1 requests, so there is no * value that this class adds to already existing classes.
@@ -83,7 +84,6 @@ import org.slf4j.LoggerFactory; * String rawResponse = connector.getResponse(rawRequest); * HttpTester.Response response = HttpTester.parseResponse(rawResponse); * - *This class will be deprecated and eventually removed in future Jetty versions.
*/ public class ServletTester extends ContainerLifeCycle {