diff --git a/spring-web/src/main/java/org/springframework/web/util/pattern/PathPatternRouteMatcher.java b/spring-web/src/main/java/org/springframework/web/util/pattern/PathPatternRouteMatcher.java index 514f0ab615..3b2b868ff0 100644 --- a/spring-web/src/main/java/org/springframework/web/util/pattern/PathPatternRouteMatcher.java +++ b/spring-web/src/main/java/org/springframework/web/util/pattern/PathPatternRouteMatcher.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.springframework.web.util.pattern; import java.util.Comparator; diff --git a/spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternRouteMatcherTests.java b/spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternRouteMatcherTests.java index 910f59b2d4..2e0de883f1 100644 --- a/spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternRouteMatcherTests.java +++ b/spring-web/src/test/java/org/springframework/web/util/pattern/PathPatternRouteMatcherTests.java @@ -22,23 +22,23 @@ import org.springframework.util.RouteMatcher; import static org.assertj.core.api.Assertions.assertThat; - /** - * Tests for the {@link PathPatternRouteMatcher} + * Tests for the {@link PathPatternRouteMatcher}. + * * @author Brian Clozel + * @since 5.2 */ public class PathPatternRouteMatcherTests { - PathPatternRouteMatcher routeMatcher = new PathPatternRouteMatcher(new PathPatternParser()); - @Test public void matchRoute() { + PathPatternRouteMatcher routeMatcher = new PathPatternRouteMatcher(new PathPatternParser()); RouteMatcher.Route route = routeMatcher.parseRoute("/projects/spring-framework"); assertThat(routeMatcher.match("/projects/{name}", route)).isTrue(); } @Test - public void matchRouteCustomSeparator() { + public void matchRouteWithCustomSeparator() { PathPatternParser pathPatternParser = new PathPatternParser(); pathPatternParser.setSeparator('.'); PathPatternRouteMatcher routeMatcher = new PathPatternRouteMatcher(pathPatternParser);