@Test public void addArgument() { FakeBuild build = new FakeBuild(); assertThat(build.arguments()).isEmpty(); build.addArgument("-Xfoo"); assertThat(build.arguments()).containsExactly("-Xfoo"); }
public T addArgument(String additionalArgument) { return addArguments(Arrays.asList(additionalArgument)); }
Build { public T addArgument(String additionalArgument) { return addArguments(Arrays.asList(additionalArgument)); } }
Build { public T addArgument(String additionalArgument) { return addArguments(Arrays.asList(additionalArgument)); }  }
Build { public T addArgument(String additionalArgument) { return addArguments(Arrays.asList(additionalArgument)); }  long getTimeoutSeconds(); T setTimeoutSeconds(long l); Map<String, String> getProperties(); String getProperty(String key); T clearProperties(); T setProperties(Map<String, String> p); T setProperties(String... keyValues); T setProperty(String key, @Nullable String value); @Deprecated T setProfile(@Nullable String profileKey); Map<String, String> getEnvironmentVariables(); Map<String, String> getEffectiveEnvironmentVariables(); T setEnvironmentVariable(String name, String value); List<String> arguments(); T addArgument(String additionalArgument); T addArguments(String... additionalArguments); T addArguments(List<String> additionalArguments); T setArguments(List<String> additionalArguments); @Deprecated T withoutDynamicAnalysis(); }
Build { public T addArgument(String additionalArgument) { return addArguments(Arrays.asList(additionalArgument)); }  long getTimeoutSeconds(); T setTimeoutSeconds(long l); Map<String, String> getProperties(); String getProperty(String key); T clearProperties(); T setProperties(Map<String, String> p); T setProperties(String... keyValues); T setProperty(String key, @Nullable String value); @Deprecated T setProfile(@Nullable String profileKey); Map<String, String> getEnvironmentVariables(); Map<String, String> getEffectiveEnvironmentVariables(); T setEnvironmentVariable(String name, String value); List<String> arguments(); T addArgument(String additionalArgument); T addArguments(String... additionalArguments); T addArguments(List<String> additionalArguments); T setArguments(List<String> additionalArguments); @Deprecated T withoutDynamicAnalysis(); static final long DEFAULT_TIMEOUT_SECONDS; }