@Test public void of_path() throws IOException { Path path = Paths.get("src/main/java"); BasicProject project = project() .with(EnvironmentConfigurator.of("TESTING", path)); assertThat( Files.isSameFile(path, Paths.get(project.environment("TESTING"))), is(true)); }
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);  }