@Test public void addArguments() { FakeBuild build = new FakeBuild(); assertThat(build.arguments()).isEmpty(); build.addArguments("-Xone", "-Xtwo"); assertThat(build.arguments()).containsOnly("-Xone", "-Xtwo"); build.addArguments(Arrays.asList("-Xthree", "-Xfour")); assertThat(build.arguments()).containsOnly("-Xone", "-Xtwo", "-Xthree", "-Xfour"); }
public T addArguments(String... additionalArguments) { return addArguments(Arrays.asList(additionalArguments)); }
Build { public T addArguments(String... additionalArguments) { return addArguments(Arrays.asList(additionalArguments)); } }
Build { public T addArguments(String... additionalArguments) { return addArguments(Arrays.asList(additionalArguments)); }  }
Build { public T addArguments(String... additionalArguments) { return addArguments(Arrays.asList(additionalArguments)); }  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 addArguments(String... additionalArguments) { return addArguments(Arrays.asList(additionalArguments)); }  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; }