RegexPathMapping extends AbstractPathMapping { @Override public String patternString() { return pathPattern; } RegexPathMapping(Pattern regex); @Override Set<String> paramNames(); @Override String patternString(); @Override RoutePathType pathType(); @Override List<String> paths(); @Override int hashCode(); @Override boolean equals(@Nullable Object obj); @Override String toString();  }
@Test void patternString() { final RegexPathMapping regexPathMapping1 = new RegexPathMapping(Pattern.compile("foo/bar")); assertThat(regexPathMapping1.patternString()).isEqualTo("foo/bar"); final RegexPathMapping regexPathMapping2 = new RegexPathMapping(Pattern.compile("^/files/(?<fileName>.*)$")); assertThat(regexPathMapping2.patternString()).isEqualTo("^/files/(?<fileName>.*)$"); }