File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
main/java/org/springframework/web/util/pattern
test/java/org/springframework/web/util/pattern Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+
16
17
package org .springframework .web .util .pattern ;
17
18
18
19
import java .util .Comparator ;
Original file line number Diff line number Diff line change 22
22
23
23
import static org .assertj .core .api .Assertions .assertThat ;
24
24
25
-
26
25
/**
27
- * Tests for the {@link PathPatternRouteMatcher}
26
+ * Tests for the {@link PathPatternRouteMatcher}.
27
+ *
28
28
* @author Brian Clozel
29
+ * @since 5.2
29
30
*/
30
31
public class PathPatternRouteMatcherTests {
31
32
32
- PathPatternRouteMatcher routeMatcher = new PathPatternRouteMatcher (new PathPatternParser ());
33
-
34
33
@ Test
35
34
public void matchRoute () {
35
+ PathPatternRouteMatcher routeMatcher = new PathPatternRouteMatcher (new PathPatternParser ());
36
36
RouteMatcher .Route route = routeMatcher .parseRoute ("/projects/spring-framework" );
37
37
assertThat (routeMatcher .match ("/projects/{name}" , route )).isTrue ();
38
38
}
39
39
40
40
@ Test
41
- public void matchRouteCustomSeparator () {
41
+ public void matchRouteWithCustomSeparator () {
42
42
PathPatternParser pathPatternParser = new PathPatternParser ();
43
43
pathPatternParser .setSeparator ('.' );
44
44
PathPatternRouteMatcher routeMatcher = new PathPatternRouteMatcher (pathPatternParser );
You can’t perform that action at this time.
0 commit comments