Test encoding and Unicode normalization for scanned resources

This commit introduces tests which serve as "regression tests" for the
behavior of PathMatchingResourcePatternResolver in Spring Framework
5.3.x with regard to URL-encoding and Unicode normalization of resource
paths.

Specifically, the new tests demonstrate that resource paths do NOT need
to be decoded or normalized in 5.3.x.

See gh-29243
This commit is contained in:
Sam Brannen
2022-10-04 13:19:59 +02:00
parent 8d0ac214f3
commit eb2c1cbcd4
4 changed files with 76 additions and 0 deletions
@@ -0,0 +1,26 @@
/*
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package example.japanese.バリューオブジェクト;
/**
* This class and its package exist in order to test encoding and Unicode
* normalization for resource paths discovered via classpath scanning.
*
* <p>"バリューオブジェクト" is Japanese for "value object".
*/
public class バリューオブジェクト {
}