GlobPathMapping extends AbstractPathMapping { @Override public Set<String> paramNames() { return paramNames; } GlobPathMapping(String glob, int numGroupsToSkip); @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 params() throws Exception { Route route = glob("baz"); assertThat(route.paramNames()).isEmpty(); assertThat(route.apply(create("/bar/baz")).pathParams()).isEmpty(); route = glob("/bar/baz*.js"); assertThat(route.paramNames()).containsExactlyInAnyOrder("0", "1"); assertThat(route.apply(create("/lib/jquery.min.js")).pathParams()) .containsEntry("0", "lib") .containsEntry("1", "jquery.min") .hasSize(2); assertThat(route.apply(create("/lodash.js")).pathParams()) .containsEntry("0", "") .containsEntry("1", "lodash") .hasSize(2); }