@Test public void testGetBuilder() { final ScriptExecutionBuilder builder = ScriptExecutionBuilder.getBuilder(SCRIPT_NAME); assertThat(builder.getScriptName()).isEqualTo(SCRIPT_NAME); }
public static ScriptExecutionBuilder getBuilder(final String scriptName) { if (scriptName == null) throw new NullPointerException("Script name cannot be null."); if (scriptName.trim().length() == 0) throw new IllegalArgumentException("Script name cannot be blank."); return new ScriptExecutionBuilder(scriptName); }
ScriptExecutionBuilder { public static ScriptExecutionBuilder getBuilder(final String scriptName) { if (scriptName == null) throw new NullPointerException("Script name cannot be null."); if (scriptName.trim().length() == 0) throw new IllegalArgumentException("Script name cannot be blank."); return new ScriptExecutionBuilder(scriptName); } }
ScriptExecutionBuilder { public static ScriptExecutionBuilder getBuilder(final String scriptName) { if (scriptName == null) throw new NullPointerException("Script name cannot be null."); if (scriptName.trim().length() == 0) throw new IllegalArgumentException("Script name cannot be blank."); return new ScriptExecutionBuilder(scriptName); } private  ScriptExecutionBuilder(final String scriptName); }
ScriptExecutionBuilder { public static ScriptExecutionBuilder getBuilder(final String scriptName) { if (scriptName == null) throw new NullPointerException("Script name cannot be null."); if (scriptName.trim().length() == 0) throw new IllegalArgumentException("Script name cannot be blank."); return new ScriptExecutionBuilder(scriptName); } private  ScriptExecutionBuilder(final String scriptName); static ScriptExecutionBuilder getBuilder(final String scriptName); void addWithReplace(final String recordName, final Record record); Collection<String> build(); String getScriptName(); ScriptExecutionBuilder withArguments(final List<Argument> arguments); }
ScriptExecutionBuilder { public static ScriptExecutionBuilder getBuilder(final String scriptName) { if (scriptName == null) throw new NullPointerException("Script name cannot be null."); if (scriptName.trim().length() == 0) throw new IllegalArgumentException("Script name cannot be blank."); return new ScriptExecutionBuilder(scriptName); } private  ScriptExecutionBuilder(final String scriptName); static ScriptExecutionBuilder getBuilder(final String scriptName); void addWithReplace(final String recordName, final Record record); Collection<String> build(); String getScriptName(); ScriptExecutionBuilder withArguments(final List<Argument> arguments);  }