diff --git a/spring-boot-docs/src/main/asciidoc/getting-started.adoc b/spring-boot-docs/src/main/asciidoc/getting-started.adoc
index 43874e6045..7104f05c37 100644
--- a/spring-boot-docs/src/main/asciidoc/getting-started.adoc
+++ b/spring-boot-docs/src/main/asciidoc/getting-started.adoc
@@ -54,18 +54,10 @@ The following embedded servlet containers are supported out of the box:
|3.1
|Java 7+
-|Jetty 9.3
+|Jetty 9.4
|3.1
|Java 8+
-|Jetty 9.2
-|3.1
-|Java 7+
-
-|Jetty 8
-|3.0
-|Java 6+
-
|Undertow 1.3
|3.1
|Java 7+
diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc
index 5c52110a02..aca580ecfe 100644
--- a/spring-boot-docs/src/main/asciidoc/howto.adoc
+++ b/spring-boot-docs/src/main/asciidoc/howto.adoc
@@ -930,132 +930,6 @@ add a listener to the `Builder`:
-[[howto-use-jetty-9.2]]
-=== Use Jetty 9.2
-Jetty 9.2 works with Spring Boot, but the default is to use Jetty 9.3. If you cannot use
-Jetty 9.3 (for example, because you are using Java 7) you will need to change your
-classpath to reference Jetty 9.2.
-
-
-
-[[howto-use-jetty-9.2-maven]]
-==== Use Jetty 9.2 with Maven
-
-If you are using the starters and parent you can just add the Jetty starter and override
-the `jetty.version` property:
-
-[source,xml,indent=0,subs="verbatim,quotes,attributes"]
-----
-
- 9.2.17.v20160517
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
- org.springframework.boot
- spring-boot-starter-tomcat
-
-
-
-
- org.springframework.boot
- spring-boot-starter-jetty
-
-
-----
-
-
-
-[[howto-use-jetty-9.2-gradle]]
-==== Use Jetty 9.2 with Gradle
-
-You can set the `jetty.version` property. For example, for a simple webapp or service:
-
-[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
-----
- ext['jetty.version'] = '9.2.17.v20160517'
- dependencies {
- compile ('org.springframework.boot:spring-boot-starter-web') {
- exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
- }
- compile ('org.springframework.boot:spring-boot-starter-jetty')
- }
-----
-
-
-
-[[howto-use-jetty-8]]
-=== Use Jetty 8
-Jetty 8 works with Spring Boot, but the default is to use Jetty 9.3. If you cannot use
-Jetty 9.3 (for example, because you are using Java 1.6) you will need to change your
-classpath to reference Jetty 8. You will also need to exclude Jetty's WebSocket-related
-dependencies.
-
-
-
-[[howto-use-jetty-8-maven]]
-==== Use Jetty 8 with Maven
-
-If you are using the starters and parent you can just add the Jetty starter with
-the required WebSocket exclusion and change the version properties, e.g. for a simple
-webapp or service:
-
-[source,xml,indent=0,subs="verbatim,quotes,attributes"]
-----
-
- 8.1.15.v20140411
- 2.2.0.v201112011158
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
- org.springframework.boot
- spring-boot-starter-tomcat
-
-
-
-
- org.springframework.boot
- spring-boot-starter-jetty
-
-
- org.eclipse.jetty.websocket
- *
-
-
-
-
-----
-
-
-
-[[howto-use-jetty-8-gradle]]
-==== Use Jetty 8 with Gradle
-
-You can set the `jetty.version` property and exclude the WebSocket dependency, e.g. for a
-simple webapp or service:
-
-[source,groovy,indent=0,subs="verbatim,quotes,attributes"]
-----
- ext['jetty.version'] = '8.1.15.v20140411'
- dependencies {
- compile ('org.springframework.boot:spring-boot-starter-web') {
- exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
- }
- compile ('org.springframework.boot:spring-boot-starter-jetty') {
- exclude group: 'org.eclipse.jetty.websocket'
- }
- }
-----
-
-
-
[[howto-create-websocket-endpoints-using-serverendpoint]]
=== Create WebSocket endpoints using @ServerEndpoint
If you want to use `@ServerEndpoint` in a Spring Boot application that used an embedded
diff --git a/spring-boot-samples/README.adoc b/spring-boot-samples/README.adoc
index fbc9704a6b..ddf3ab1292 100644
--- a/spring-boot-samples/README.adoc
+++ b/spring-boot-samples/README.adoc
@@ -114,18 +114,6 @@ The following sample applications are provided:
| link:spring-boot-sample-jetty-jsp[spring-boot-sample-jetty-jsp]
| Web application that uses JSP templates with Jetty
-| link:spring-boot-sample-jetty8[spring-boot-sample-jetty8]
-| Embedded Jetty 8
-
-| link:spring-boot-sample-jetty8-ssl[spring-boot-sample-jetty8-ssl]
-| Embedded Jetty 8 SSL
-
-| link:spring-boot-sample-jetty92[spring-boot-sample-jetty92]
-| Embedded Jetty 9.2
-
-| link:spring-boot-sample-jetty93[spring-boot-sample-jetty93]
-| Embedded Jetty 9.3
-
| link:spring-boot-sample-jooq[spring-boot-sample-jooq]
| Stores data using jOOQ
@@ -264,9 +252,6 @@ The following sample applications are provided:
| link:spring-boot-sample-websocket-jetty[spring-boot-sample-websocket-jetty]
| WebSocket application that uses Jetty
-| link:spring-boot-sample-websocket-jetty93[spring-boot-sample-websocket-jetty93]
-| WebSocket application that uses Jetty 9.3
-
| link:spring-boot-sample-websocket-tomcat[spring-boot-sample-websocket-tomcat]
| WebSocket application that uses Tomcat
diff --git a/spring-boot-samples/pom.xml b/spring-boot-samples/pom.xml
index 478991b99f..e9cfc28b1a 100644
--- a/spring-boot-samples/pom.xml
+++ b/spring-boot-samples/pom.xml
@@ -57,10 +57,6 @@
spring-boot-sample-jettyspring-boot-sample-jetty-jspspring-boot-sample-jetty-ssl
- spring-boot-sample-jetty8
- spring-boot-sample-jetty8-ssl
- spring-boot-sample-jetty92
- spring-boot-sample-jetty93spring-boot-sample-jooqspring-boot-sample-jpaspring-boot-sample-jta-atomikos
@@ -107,7 +103,6 @@
spring-boot-sample-web-thymeleaf3spring-boot-sample-web-uispring-boot-sample-websocket-jetty
- spring-boot-sample-websocket-jetty93spring-boot-sample-websocket-tomcatspring-boot-sample-websocket-undertowspring-boot-sample-webservices
diff --git a/spring-boot-samples/spring-boot-sample-jetty8-ssl/pom.xml b/spring-boot-samples/spring-boot-sample-jetty8-ssl/pom.xml
deleted file mode 100644
index 8ad9461d9c..0000000000
--- a/spring-boot-samples/spring-boot-sample-jetty8-ssl/pom.xml
+++ /dev/null
@@ -1,64 +0,0 @@
-
-
- 4.0.0
-
-
- org.springframework.boot
- spring-boot-samples
- 2.0.0.BUILD-SNAPSHOT
-
- spring-boot-sample-jetty8-ssl
- Spring Boot Jetty 8 SSL Sample
- Spring Boot Jetty 8 SSL Sample
- http://projects.spring.io/spring-boot/
-
- Pivotal Software, Inc.
- http://www.spring.io
-
-
- ${basedir}/../..
- 8.1.15.v20140411
- 2.2.0.v201112011158
- 3.0.1
-
-
-
-
- org.springframework.boot
- spring-boot-starter
-
-
- org.springframework.boot
- spring-boot-starter-jetty
-
-
- org.eclipse.jetty.websocket
- *
-
-
-
-
- org.springframework
- spring-webmvc
-
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
- org.apache.httpcomponents
- httpclient
- test
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
diff --git a/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/java/sample/jetty8/ssl/SampleJetty8SslApplication.java b/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/java/sample/jetty8/ssl/SampleJetty8SslApplication.java
deleted file mode 100644
index a032151291..0000000000
--- a/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/java/sample/jetty8/ssl/SampleJetty8SslApplication.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright 2012-2015 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package sample.jetty8.ssl;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-@SpringBootApplication
-public class SampleJetty8SslApplication {
-
- public static void main(String[] args) throws Exception {
- SpringApplication.run(SampleJetty8SslApplication.class, args);
- }
-
-}
diff --git a/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/java/sample/jetty8/ssl/service/HelloWorldService.java b/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/java/sample/jetty8/ssl/service/HelloWorldService.java
deleted file mode 100644
index 4a4685f677..0000000000
--- a/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/java/sample/jetty8/ssl/service/HelloWorldService.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright 2012-2015 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package sample.jetty8.ssl.service;
-
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.stereotype.Component;
-
-@Component
-public class HelloWorldService {
-
- @Value("${name:World}")
- private String name;
-
- public String getHelloMessage() {
- return "Hello " + this.name;
- }
-
-}
diff --git a/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/java/sample/jetty8/ssl/web/SampleController.java b/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/java/sample/jetty8/ssl/web/SampleController.java
deleted file mode 100644
index 56bdcefc8e..0000000000
--- a/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/java/sample/jetty8/ssl/web/SampleController.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright 2012-2016 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package sample.jetty8.ssl.web;
-
-import sample.jetty8.ssl.service.HelloWorldService;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.ResponseBody;
-
-@Controller
-public class SampleController {
-
- @Autowired
- private HelloWorldService helloWorldService;
-
- @GetMapping("/")
- @ResponseBody
- public String helloWorld() {
- return this.helloWorldService.getHelloMessage();
- }
-
-}
diff --git a/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/resources/application.properties b/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/resources/application.properties
deleted file mode 100644
index 953abe0d6c..0000000000
--- a/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/resources/application.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-server.port = 8443
-server.ssl.key-store = classpath:sample.jks
-server.ssl.key-store-password = secret
-server.ssl.key-password = password
\ No newline at end of file
diff --git a/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/resources/sample.jks b/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/resources/sample.jks
deleted file mode 100644
index 6aa9a28053..0000000000
Binary files a/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/main/resources/sample.jks and /dev/null differ
diff --git a/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/test/java/sample/jetty8/ssl/SampleJetty8SslApplicationTests.java b/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/test/java/sample/jetty8/ssl/SampleJetty8SslApplicationTests.java
deleted file mode 100644
index 60420899cc..0000000000
--- a/spring-boot-samples/spring-boot-sample-jetty8-ssl/src/test/java/sample/jetty8/ssl/SampleJetty8SslApplicationTests.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright 2012-2016 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package sample.jetty8.ssl;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.context.embedded.LocalServerPort;
-import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
-import org.springframework.boot.test.web.client.TestRestTemplate;
-import org.springframework.http.HttpStatus;
-import org.springframework.http.ResponseEntity;
-import org.springframework.test.annotation.DirtiesContext;
-import org.springframework.test.context.junit4.SpringRunner;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-/**
- * Basic integration tests for demo application.
- *
- * @author Dave Syer
- */
-@RunWith(SpringRunner.class)
-@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
-@DirtiesContext
-public class SampleJetty8SslApplicationTests {
-
- @Autowired
- private TestRestTemplate restTemplate;
-
- @LocalServerPort
- private int port;
-
- @Test
- public void testHome() throws Exception {
- ResponseEntity entity = this.restTemplate.getForEntity("/", String.class);
- assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
- assertThat(entity.getBody()).isEqualTo("Hello World");
- }
-
-}
diff --git a/spring-boot-samples/spring-boot-sample-jetty8/pom.xml b/spring-boot-samples/spring-boot-sample-jetty8/pom.xml
deleted file mode 100644
index f4f7d5c720..0000000000
--- a/spring-boot-samples/spring-boot-sample-jetty8/pom.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
- 4.0.0
-
-
- org.springframework.boot
- spring-boot-samples
- 2.0.0.BUILD-SNAPSHOT
-
- spring-boot-sample-jetty8
- Spring Boot Jetty 8 Sample
- Spring Boot Jetty 8 Sample
- http://projects.spring.io/spring-boot/
-
- Pivotal Software, Inc.
- http://www.spring.io
-
-
- ${basedir}/../..
- 8.1.15.v20140411
- 2.2.0.v201112011158
-
-
-
-
- org.springframework.boot
- spring-boot-starter
-
-
- org.springframework.boot
- spring-boot-starter-jetty
-
-
- org.eclipse.jetty.websocket
- *
-
-
-
-
- org.springframework
- spring-webmvc
-
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
diff --git a/spring-boot-samples/spring-boot-sample-jetty8/src/main/java/sample/jetty8/SampleJetty8Application.java b/spring-boot-samples/spring-boot-sample-jetty8/src/main/java/sample/jetty8/SampleJetty8Application.java
deleted file mode 100644
index 1accb53c93..0000000000
--- a/spring-boot-samples/spring-boot-sample-jetty8/src/main/java/sample/jetty8/SampleJetty8Application.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright 2012-2015 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package sample.jetty8;
-
-import org.springframework.boot.SpringApplication;
-import org.springframework.boot.autoconfigure.SpringBootApplication;
-
-@SpringBootApplication
-public class SampleJetty8Application {
-
- public static void main(String[] args) throws Exception {
- SpringApplication.run(SampleJetty8Application.class, args);
- }
-
-}
diff --git a/spring-boot-samples/spring-boot-sample-jetty8/src/main/java/sample/jetty8/service/HelloWorldService.java b/spring-boot-samples/spring-boot-sample-jetty8/src/main/java/sample/jetty8/service/HelloWorldService.java
deleted file mode 100644
index 88fc636b58..0000000000
--- a/spring-boot-samples/spring-boot-sample-jetty8/src/main/java/sample/jetty8/service/HelloWorldService.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright 2012-2015 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package sample.jetty8.service;
-
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.stereotype.Component;
-
-@Component
-public class HelloWorldService {
-
- @Value("${name:World}")
- private String name;
-
- public String getHelloMessage() {
- return "Hello " + this.name;
- }
-
-}
diff --git a/spring-boot-samples/spring-boot-sample-jetty8/src/main/java/sample/jetty8/web/SampleController.java b/spring-boot-samples/spring-boot-sample-jetty8/src/main/java/sample/jetty8/web/SampleController.java
deleted file mode 100644
index 5d4edaf3c6..0000000000
--- a/spring-boot-samples/spring-boot-sample-jetty8/src/main/java/sample/jetty8/web/SampleController.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright 2012-2016 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package sample.jetty8.web;
-
-import sample.jetty8.service.HelloWorldService;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.ResponseBody;
-
-@Controller
-public class SampleController {
-
- @Autowired
- private HelloWorldService helloWorldService;
-
- @GetMapping("/")
- @ResponseBody
- public String helloWorld() {
- return this.helloWorldService.getHelloMessage();
- }
-
-}
diff --git a/spring-boot-samples/spring-boot-sample-jetty8/src/main/resources/application.properties b/spring-boot-samples/spring-boot-sample-jetty8/src/main/resources/application.properties
deleted file mode 100644
index d919692f58..0000000000
--- a/spring-boot-samples/spring-boot-sample-jetty8/src/main/resources/application.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-server.compression.enabled: true
-server.compression.min-response-size: 1
-server.max-http-header-size: 4096
diff --git a/spring-boot-samples/spring-boot-sample-jetty8/src/test/java/sample/jetty8/SampleJetty8ApplicationTests.java b/spring-boot-samples/spring-boot-sample-jetty8/src/test/java/sample/jetty8/SampleJetty8ApplicationTests.java
deleted file mode 100644
index 5165011db8..0000000000
--- a/spring-boot-samples/spring-boot-sample-jetty8/src/test/java/sample/jetty8/SampleJetty8ApplicationTests.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Copyright 2012-2016 the original author or authors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package sample.jetty8;
-
-import java.io.ByteArrayInputStream;
-import java.nio.charset.Charset;
-import java.util.zip.GZIPInputStream;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
-import org.springframework.boot.test.web.client.TestRestTemplate;
-import org.springframework.http.HttpEntity;
-import org.springframework.http.HttpHeaders;
-import org.springframework.http.HttpMethod;
-import org.springframework.http.HttpStatus;
-import org.springframework.http.ResponseEntity;
-import org.springframework.test.annotation.DirtiesContext;
-import org.springframework.test.context.junit4.SpringRunner;
-import org.springframework.util.StreamUtils;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-/**
- * Basic integration tests for demo application.
- *
- * @author Dave Syer
- * @author Andy Wilkinson
- */
-@RunWith(SpringRunner.class)
-@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
-@DirtiesContext
-public class SampleJetty8ApplicationTests {
-
- @Autowired
- private TestRestTemplate restTemplate;
-
- @Test
- public void testHome() throws Exception {
- ResponseEntity entity = this.restTemplate.getForEntity("/", String.class);
- assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
- assertThat(entity.getBody()).isEqualTo("Hello World");
- }
-
- @Test
- public void testCompression() throws Exception {
- HttpHeaders requestHeaders = new HttpHeaders();
- requestHeaders.set("Accept-Encoding", "gzip");
- HttpEntity> requestEntity = new HttpEntity