Skip to content

Commit

Permalink
Avoid CI failures with UTF-8 chars in test filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoyanchev authored and Zoran0104 committed Aug 20, 2021
1 parent 767e160 commit 98d8513
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Expand Up @@ -244,7 +244,7 @@ public void getResourceFromFileSystem() throws Exception {
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();
Expand Down
Expand Up @@ -88,7 +88,7 @@ void cssFile(boolean usePathPatterns, String pathPrefix) throws Exception {
@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);
Expand Down

0 comments on commit 98d8513

Please sign in to comment.