ParameterizedPathMapping extends AbstractPathMapping { @Override public String patternString() { return nomalizedPathPattern; } ParameterizedPathMapping(String pathPattern); @Override Set<String> paramNames(); @Override String patternString(); @Override RoutePathType pathType(); @Override List<String> paths(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }
@Test void patternString() { final ParameterizedPathMapping pathMappingWithBrace = new ParameterizedPathMapping("/service/{value}"); assertThat(pathMappingWithBrace.patternString()).isEqualTo("/service/:value"); final ParameterizedPathMapping pathMappingWithColon = new ParameterizedPathMapping("/service/:value"); assertThat(pathMappingWithColon.patternString()).isEqualTo("/service/:value"); final ParameterizedPathMapping pathMappingWithComplexPattern = new ParameterizedPathMapping("/service/{value}/items/{value}/:itemId"); assertThat(pathMappingWithComplexPattern.patternString()) .isEqualTo("/service/:value/items/:value/:itemId"); }