Skip to content

Commit 0a6a6d4

Browse files
committed
Avoid CI failures with UTF-8 chars in test filenames
See gh-26775
1 parent a08593b commit 0a6a6d4

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceWebHandlerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public void getResourceFromFileSystem() throws Exception {
244244
handler.afterPropertiesSet();
245245

246246
MockServerWebExchange exchange = MockServerWebExchange.from(MockServerHttpRequest.get(""));
247-
setPathWithinHandlerMapping(exchange, UriUtils.encodePath("test/фоо.css", UTF_8));
247+
setPathWithinHandlerMapping(exchange, UriUtils.encodePath("test/foo with spaces.css", UTF_8));
248248
handler.handle(exchange).block(TIMEOUT);
249249

250250
HttpHeaders headers = exchange.getResponse().getHeaders();

spring-webmvc/src/test/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandlerIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void cssFile(boolean usePathPatterns, String pathPrefix) throws Exception {
8888
@ParameterizedTest
8989
@MethodSource("argumentSource")
9090
void classpathLocationWithEncodedPath(boolean usePathPatterns, String pathPrefix) throws Exception {
91-
MockHttpServletRequest request = initRequest(pathPrefix + "/test/фоо.css");
91+
MockHttpServletRequest request = initRequest(pathPrefix + "/test/foo with spaces.css");
9292
MockHttpServletResponse response = new MockHttpServletResponse();
9393

9494
DispatcherServlet servlet = initDispatcherServlet(usePathPatterns, WebConfig.class);

0 commit comments

Comments
 (0)