@Test public void of_url_enum() { BasicProject project = project() .with(PropertyConfigurator.of(Collections.enumeration(Arrays.asList( resource("a"), resource("b"), resource("c"), resource("b-override"))))); assertThat(project.property("a"), is("1")); assertThat(project.property("b"), is("-")); assertThat(project.property("c"), is("3")); }
public static PropertyConfigurator of(String key, String value) { return of(Collections.singletonMap(key, value)); }
PropertyConfigurator implements Consumer<BaseProject<?>> { public static PropertyConfigurator of(String key, String value) { return of(Collections.singletonMap(key, value)); } }
PropertyConfigurator implements Consumer<BaseProject<?>> { public static PropertyConfigurator of(String key, String value) { return of(Collections.singletonMap(key, value)); } PropertyConfigurator(Map<String, String> edit); }
PropertyConfigurator implements Consumer<BaseProject<?>> { public static PropertyConfigurator of(String key, String value) { return of(Collections.singletonMap(key, value)); } PropertyConfigurator(Map<String, String> edit); static PropertyConfigurator nothing(); static PropertyConfigurator system(); static PropertyConfigurator of(String key, String value); static PropertyConfigurator of(String key, Path path); static PropertyConfigurator of(Map<String, String> properties); static PropertyConfigurator of(Properties properties); static PropertyConfigurator of(URL resource); static PropertyConfigurator of(Optional<? extends URL> resource); static PropertyConfigurator of(Enumeration<? extends URL> resources); @Override void accept(BaseProject<?> project); }
PropertyConfigurator implements Consumer<BaseProject<?>> { public static PropertyConfigurator of(String key, String value) { return of(Collections.singletonMap(key, value)); } PropertyConfigurator(Map<String, String> edit); static PropertyConfigurator nothing(); static PropertyConfigurator system(); static PropertyConfigurator of(String key, String value); static PropertyConfigurator of(String key, Path path); static PropertyConfigurator of(Map<String, String> properties); static PropertyConfigurator of(Properties properties); static PropertyConfigurator of(URL resource); static PropertyConfigurator of(Optional<? extends URL> resource); static PropertyConfigurator of(Enumeration<? extends URL> resources); @Override void accept(BaseProject<?> project);  }