Skip to content

Commit c23b0e9

Browse files
committed
Fix failing PathRequestTests
Fix test failing due to commit d664967. See gh-12238
1 parent d664967 commit c23b0e9

File tree

1 file changed

+2
-0
lines changed
  • spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/servlet

1 file changed

+2
-0
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/servlet/PathRequestTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.assertj.core.api.AssertDelegateTarget;
2222
import org.junit.Test;
2323

24+
import org.springframework.boot.autoconfigure.h2.H2ConsoleProperties;
2425
import org.springframework.boot.autoconfigure.web.ServerProperties;
2526
import org.springframework.mock.web.MockHttpServletRequest;
2627
import org.springframework.mock.web.MockServletContext;
@@ -54,6 +55,7 @@ public void toH2ConsoleShouldMatchH2ConsolePath() {
5455
private RequestMatcherAssert assertMatcher(RequestMatcher matcher) {
5556
StaticWebApplicationContext context = new StaticWebApplicationContext();
5657
context.registerBean(ServerProperties.class);
58+
context.registerBean(H2ConsoleProperties.class);
5759
return assertThat(new RequestMatcherAssert(context, matcher));
5860
}
5961

0 commit comments

Comments
 (0)