Avoid CI failures with UTF-8 chars in test filenames
See gh-26775
This commit is contained in:
@@ -244,7 +244,7 @@ public class ResourceWebHandlerTests {
|
||||
handler.afterPropertiesSet();
|
||||
|
||||
MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get(""));
|
||||
setPathWithinHandlerMapping(exchange, UriUtils.encodePath("test/фоо.css", UTF_8));
|
||||
setPathWithinHandlerMapping(exchange, UriUtils.encodePath("test/foo with spaces.css", UTF_8));
|
||||
handler.handle(exchange).block(TIMEOUT);
|
||||
|
||||
HttpHeaders headers = exchange.getResponse().getHeaders();
|
||||
|
||||
@@ -88,7 +88,7 @@ public class ResourceHttpRequestHandlerIntegrationTests {
|
||||
@ParameterizedTest
|
||||
@MethodSource("argumentSource")
|
||||
void classpathLocationWithEncodedPath(boolean usePathPatterns, String pathPrefix) throws Exception {
|
||||
MockHttpServletRequest request = initRequest(pathPrefix + "/test/фоо.css");
|
||||
MockHttpServletRequest request = initRequest(pathPrefix + "/test/foo with spaces.css");
|
||||
MockHttpServletResponse response = new MockHttpServletResponse();
|
||||
|
||||
DispatcherServlet servlet = initDispatcherServlet(usePathPatterns, WebConfig.class);
|
||||
|
||||
Reference in New Issue
Block a user