Skip to content

Commit 8743148

Browse files
committed
Fix tests
1 parent cb1096d commit 8743148

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-boot/src/test/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactoryTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,11 @@ public void sslGetScheme() throws Exception { // gh-2232
449449

450450
@Test
451451
public void sslKeyAlias() throws Exception {
452-
AbstractEmbeddedServletContainerFactory factory = getFactory();
452+
AbstractServletWebServerFactory factory = getFactory();
453453
factory.setSsl(getSsl(null, "password", "test-alias", "src/test/resources/test.jks"));
454-
this.container = factory.getEmbeddedServletContainer(
455-
new ServletRegistrationBean(new ExampleServlet(true, false), "/hello"));
456-
this.container.start();
454+
this.webServer = factory.getWebServer(
455+
new ServletRegistrationBean<>(new ExampleServlet(true, false), "/hello"));
456+
this.webServer.start();
457457
SSLConnectionSocketFactory socketFactory = new SSLConnectionSocketFactory(
458458
new SSLContextBuilder()
459459
.loadTrustMaterial(null, new SerialNumberValidatingTrustSelfSignedStrategy("77e7c302")).build());

0 commit comments

Comments
 (0)