|
|
|
@ -21,6 +21,7 @@ import javax.servlet.http.HttpServletRequest; |
|
|
|
import org.assertj.core.api.AssertDelegateTarget; |
|
|
|
import org.assertj.core.api.AssertDelegateTarget; |
|
|
|
import org.junit.Test; |
|
|
|
import org.junit.Test; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.h2.H2ConsoleProperties; |
|
|
|
import org.springframework.boot.autoconfigure.web.ServerProperties; |
|
|
|
import org.springframework.boot.autoconfigure.web.ServerProperties; |
|
|
|
import org.springframework.mock.web.MockHttpServletRequest; |
|
|
|
import org.springframework.mock.web.MockHttpServletRequest; |
|
|
|
import org.springframework.mock.web.MockServletContext; |
|
|
|
import org.springframework.mock.web.MockServletContext; |
|
|
|
@ -54,6 +55,7 @@ public class PathRequestTests { |
|
|
|
private RequestMatcherAssert assertMatcher(RequestMatcher matcher) { |
|
|
|
private RequestMatcherAssert assertMatcher(RequestMatcher matcher) { |
|
|
|
StaticWebApplicationContext context = new StaticWebApplicationContext(); |
|
|
|
StaticWebApplicationContext context = new StaticWebApplicationContext(); |
|
|
|
context.registerBean(ServerProperties.class); |
|
|
|
context.registerBean(ServerProperties.class); |
|
|
|
|
|
|
|
context.registerBean(H2ConsoleProperties.class); |
|
|
|
return assertThat(new RequestMatcherAssert(context, matcher)); |
|
|
|
return assertThat(new RequestMatcherAssert(context, matcher)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|