@Test public void test_no_args() { NodeCommandBuilder commandBuilder = NodeCommand.builder(mockProcessWrapper); assertThatThrownBy(commandBuilder::build) .isInstanceOf(IllegalArgumentException.class) .hasMessage("Missing arguments for Node.js."); }
public static NodeCommandBuilder builder() { return builder(new ProcessWrapperImpl()); }
NodeCommand { public static NodeCommandBuilder builder() { return builder(new ProcessWrapperImpl()); } }
NodeCommand { public static NodeCommandBuilder builder() { return builder(new ProcessWrapperImpl()); } NodeCommand(ProcessWrapper processWrapper, String nodeExecutable, int actualNodeVersion, List<String> nodeJsArgs, @Nullable String scriptFilename,
    List<String> args,
    Consumer<String> outputConsumer,
    Consumer<String> errorConsumer); }
NodeCommand { public static NodeCommandBuilder builder() { return builder(new ProcessWrapperImpl()); } NodeCommand(ProcessWrapper processWrapper, String nodeExecutable, int actualNodeVersion, List<String> nodeJsArgs, @Nullable String scriptFilename,
    List<String> args,
    Consumer<String> outputConsumer,
    Consumer<String> errorConsumer); void start(); int waitFor(); @Override String toString(); int getActualNodeVersion(); static NodeCommandBuilder builder(); }
NodeCommand { public static NodeCommandBuilder builder() { return builder(new ProcessWrapperImpl()); } NodeCommand(ProcessWrapper processWrapper, String nodeExecutable, int actualNodeVersion, List<String> nodeJsArgs, @Nullable String scriptFilename,
    List<String> args,
    Consumer<String> outputConsumer,
    Consumer<String> errorConsumer); void start(); int waitFor(); @Override String toString(); int getActualNodeVersion(); static NodeCommandBuilder builder();  }