diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml
index 6bcb8f6ee3..78404bce9e 100644
--- a/spring-boot-dependencies/pom.xml
+++ b/spring-boot-dependencies/pom.xml
@@ -181,7 +181,7 @@
1.4.0
1.3
2.1.0.RELEASE
- 8.5.6
+ 8.5.11
1.4.8.Final
3.2.0
9f96c74
diff --git a/spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java b/spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java
index da39543604..0053e8d6b8 100644
--- a/spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java
+++ b/spring-boot/src/test/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactoryTests.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2012-2016 the original author or authors.
+ * Copyright 2012-2017 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.
@@ -247,14 +247,18 @@ public class TomcatEmbeddedServletContainerFactoryTests
TomcatEmbeddedServletContainerFactory factory = getFactory();
factory.setUriEncoding(Charset.forName("US-ASCII"));
Tomcat tomcat = getTomcat(factory);
- assertThat(tomcat.getConnector().getURIEncoding()).isEqualTo("US-ASCII");
+ Connector connector = ((TomcatEmbeddedServletContainer) this.container)
+ .getServiceConnectors().get(tomcat.getService())[0];
+ assertThat(connector.getURIEncoding()).isEqualTo("US-ASCII");
}
@Test
public void defaultUriEncoding() throws Exception {
TomcatEmbeddedServletContainerFactory factory = getFactory();
Tomcat tomcat = getTomcat(factory);
- assertThat(tomcat.getConnector().getURIEncoding()).isEqualTo("UTF-8");
+ Connector connector = ((TomcatEmbeddedServletContainer) this.container)
+ .getServiceConnectors().get(tomcat.getService())[0];
+ assertThat(connector.getURIEncoding()).isEqualTo("UTF-8");
}
@Test
@@ -263,13 +267,12 @@ public class TomcatEmbeddedServletContainerFactoryTests
ssl.setKeyStore("test.jks");
ssl.setKeyStorePassword("secret");
ssl.setCiphers(new String[] { "ALPHA", "BRAVO", "CHARLIE" });
-
TomcatEmbeddedServletContainerFactory factory = getFactory();
factory.setSsl(ssl);
Tomcat tomcat = getTomcat(factory);
- Connector connector = tomcat.getConnector();
-
+ Connector connector = ((TomcatEmbeddedServletContainer) this.container)
+ .getServiceConnectors().get(tomcat.getService())[0];
SSLHostConfig[] sslHostConfigs = connector.getProtocolHandler()
.findSslHostConfigs();
assertThat(sslHostConfigs[0].getCiphers()).isEqualTo("ALPHA:BRAVO:CHARLIE");
@@ -309,9 +312,8 @@ public class TomcatEmbeddedServletContainerFactoryTests
this.container = factory
.getEmbeddedServletContainer(sessionServletRegistration());
Tomcat tomcat = ((TomcatEmbeddedServletContainer) this.container).getTomcat();
- Connector connector = tomcat.getConnector();
-
this.container.start();
+ Connector connector = tomcat.getConnector();
SSLHostConfig sslHostConfig = connector.getProtocolHandler()
.findSslHostConfigs()[0];
assertThat(sslHostConfig.getSslProtocol()).isEqualTo("TLS");