Package org.springframework.boot.cli.command.run

Examples of org.springframework.boot.cli.command.run.RunCommand$RunOptionHandler


  public void setTimeout(long timeout) {
    this.timeout = timeout;
  }

  public String run(String... args) throws Exception {
    Future<RunCommand> future = submitCommand(new RunCommand(), args);
    this.commands.add(future.get(this.timeout, TimeUnit.MILLISECONDS));
    return getOutput();
  }
View Full Code Here


  public OutputCapture output = new OutputCapture();

  @Test
  public void debugAddsAutoconfigReport() {
    CommandRunner runner = new CommandRunner("spring");
    runner.addCommand(new RunCommand());
    // -d counts as "debug" for the spring command, but not for the
    // LoggingApplicationListener
    runner.runAndHandleErrors("run", "samples/app.groovy", "-d");
    assertTrue(this.output.toString().contains("Negative matches:"));
  }
View Full Code Here

  }

  @Test
  public void debugSwitchedOffForAppArgs() {
    CommandRunner runner = new CommandRunner("spring");
    runner.addCommand(new RunCommand());
    runner.runAndHandleErrors("run", "samples/app.groovy", "--", "-d");
    assertFalse(this.output.toString().contains("Negative matches:"));
  }
View Full Code Here

TOP

Related Classes of org.springframework.boot.cli.command.run.RunCommand$RunOptionHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.