@Test public void test_min_version() throws IOException { thrown.expect(NodeCommandException.class); thrown.expectMessage("Only Node.js v99 or later is supported, got"); NodeCommand.builder() .minNodeVersion(99) .pathResolver(getPathResolver()) .build(); }
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();  }