@Test public void emptyArguments() throws Exception { final UrlPattern pattern = new UrlPattern("foobar", NameBoundResolver.EMPTY); final Map<GroupName, String> result = pattern.getUrls().collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); assertTrue(pattern.getTemplateArgs().isEmpty()); assertThat(result, hasEntry(GroupName.valueOf(), "foobar")); }
public Stream<Map.Entry<GroupName, String>> getUrls() throws Exception { return templateArgs.resolve() .map(this::apply_args_); }
UrlPattern { public Stream<Map.Entry<GroupName, String>> getUrls() throws Exception { return templateArgs.resolve() .map(this::apply_args_); } }
UrlPattern { public Stream<Map.Entry<GroupName, String>> getUrls() throws Exception { return templateArgs.resolve() .map(this::apply_args_); } UrlPattern(@NonNull StringTemplate urlTemplate, @NonNull NameBoundResolver templateArgs);  UrlPattern(String urlTemplate, NameBoundResolver templateArgs); }
UrlPattern { public Stream<Map.Entry<GroupName, String>> getUrls() throws Exception { return templateArgs.resolve() .map(this::apply_args_); } UrlPattern(@NonNull StringTemplate urlTemplate, @NonNull NameBoundResolver templateArgs);  UrlPattern(String urlTemplate, NameBoundResolver templateArgs); Stream<Map.Entry<GroupName, String>> getUrls(); @Override String toString(); }
UrlPattern { public Stream<Map.Entry<GroupName, String>> getUrls() throws Exception { return templateArgs.resolve() .map(this::apply_args_); } UrlPattern(@NonNull StringTemplate urlTemplate, @NonNull NameBoundResolver templateArgs);  UrlPattern(String urlTemplate, NameBoundResolver templateArgs); Stream<Map.Entry<GroupName, String>> getUrls(); @Override String toString();  }