@Test public void of_pair() { BasicProject project = project() .with(EnvironmentConfigurator.of("TESTING", "OK")); assertThat(project.environment("TESTING"), is("OK")); project.with(EnvironmentConfigurator.of("TESTING", (String) null)); assertThat(project.environment("TESTING"), is(nullValue())); }
public static EnvironmentConfigurator of(String name, String value) { return of(Collections.singletonMap(name, value)); }
EnvironmentConfigurator implements Consumer<BaseProject<?>> { public static EnvironmentConfigurator of(String name, String value) { return of(Collections.singletonMap(name, value)); } }
EnvironmentConfigurator implements Consumer<BaseProject<?>> { public static EnvironmentConfigurator of(String name, String value) { return of(Collections.singletonMap(name, value)); } EnvironmentConfigurator(Map<String, String> edit); }
EnvironmentConfigurator implements Consumer<BaseProject<?>> { public static EnvironmentConfigurator of(String name, String value) { return of(Collections.singletonMap(name, value)); } EnvironmentConfigurator(Map<String, String> edit); static EnvironmentConfigurator nothing(); static EnvironmentConfigurator system(); static EnvironmentConfigurator of(String name, String value); static EnvironmentConfigurator of(String name, Path path); static EnvironmentConfigurator of(Map<String, String> variables); @Override void accept(BaseProject<?> project); }
EnvironmentConfigurator implements Consumer<BaseProject<?>> { public static EnvironmentConfigurator of(String name, String value) { return of(Collections.singletonMap(name, value)); } EnvironmentConfigurator(Map<String, String> edit); static EnvironmentConfigurator nothing(); static EnvironmentConfigurator system(); static EnvironmentConfigurator of(String name, String value); static EnvironmentConfigurator of(String name, Path path); static EnvironmentConfigurator of(Map<String, String> variables); @Override void accept(BaseProject<?> project);  }