From 527850ae5594a93bfdd91f8bf62890d859a2d636 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 26 Mar 2015 18:53:28 +0000 Subject: [PATCH] Align default context path expectation with Undertow 1.1.3's behaviour When configured with a context path of "", Undertow 1.1.3 changes the context path to be "/". The change [1] was made to fix UNDERTOW-350 [2]. [1] https://github.com/undertow-io/undertow/commit/3db7707b8b34095d8d2fafecf94a10d101c62320 [2] https://issues.jboss.org/browse/UNDERTOW-350 See gh-2732 --- .../undertow/UndertowEmbeddedServletContainerFactoryTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot/src/test/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainerFactoryTests.java b/spring-boot/src/test/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainerFactoryTests.java index 63b78be7df..ccd81aea0a 100644 --- a/spring-boot/src/test/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainerFactoryTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainerFactoryTests.java @@ -146,7 +146,7 @@ public class UndertowEmbeddedServletContainerFactoryTests extends } }); this.container = factory.getEmbeddedServletContainer(); - assertEquals("", contextPath.get()); + assertEquals("/", contextPath.get()); } }