ServletPathSpec encoded test case

This commit is contained in:
Joakim Erdfelt 2022-08-10 15:52:11 -05:00
parent 7808a26beb
commit eb2bf4b97d
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ public class ServletPathSpecOrderTest
data.add(Arguments.of("/animal/arhive.gz", "animals"));
data.add(Arguments.of("/Other/path", "default"));
// @checkstyle-disable-check : AvoidEscapedUnicodeCharactersCheck
data.add(Arguments.of("/\u20ACuro/path", "money"));
data.add(Arguments.of("/%E2%82%ACuro/path", "money"));
// @checkstyle-enable-check : AvoidEscapedUnicodeCharactersCheck
data.add(Arguments.of("/", "root"));
@ -81,7 +81,7 @@ public class ServletPathSpecOrderTest
mappings.put(new ServletPathSpec("/"), "default"); // 8
// 9 was the old Jetty ":" spec delimited case (no longer valid)
mappings.put(new ServletPathSpec(""), "root"); // 10
mappings.put(new ServletPathSpec("/\u20ACuro/*"), "money"); // 11
mappings.put(new ServletPathSpec("/%E2%82%ACuro/*"), "money"); // 11
}
@ParameterizedTest