PrefixPathMapping extends AbstractPathMapping { @Override public String patternString() { return pathPattern; } PrefixPathMapping(String prefix, boolean stripPrefix); @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 PrefixPathMapping prefixPathMapping1 = new PrefixPathMapping("/foo/bar", true); assertThat(prefixPathMapping1.patternString()).isEqualTo("/foo/bar/*"); final PrefixPathMapping prefixPathMapping2 = new PrefixPathMapping("/foo/bar/", true); assertThat(prefixPathMapping2.patternString()).isEqualTo("/foo/bar/*"); }