From c23b0e99f1f8b14f1237e88f8ca5071187e4ebe2 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 27 Feb 2018 17:06:21 -0800 Subject: [PATCH] Fix failing PathRequestTests Fix test failing due to commit d66496787d. See gh-12238 --- .../boot/autoconfigure/security/servlet/PathRequestTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/servlet/PathRequestTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/servlet/PathRequestTests.java index 8aece43fc46..24b4c403dce 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/servlet/PathRequestTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/servlet/PathRequestTests.java @@ -21,6 +21,7 @@ import javax.servlet.http.HttpServletRequest; import org.assertj.core.api.AssertDelegateTarget; import org.junit.Test; +import org.springframework.boot.autoconfigure.h2.H2ConsoleProperties; import org.springframework.boot.autoconfigure.web.ServerProperties; import org.springframework.mock.web.MockHttpServletRequest; import org.springframework.mock.web.MockServletContext; @@ -54,6 +55,7 @@ public class PathRequestTests { private RequestMatcherAssert assertMatcher(RequestMatcher matcher) { StaticWebApplicationContext context = new StaticWebApplicationContext(); context.registerBean(ServerProperties.class); + context.registerBean(H2ConsoleProperties.class); return assertThat(new RequestMatcherAssert(context, matcher)); }