Package org.springframework.boot.cli.command.options

Examples of org.springframework.boot.cli.command.options.OptionHandler.option()


public class OptionParsingCommandTests {

  @Test
  public void optionHelp() {
    OptionHandler handler = new OptionHandler();
    handler.option("bar", "Bar");
    OptionParsingCommand command = new OptionParsingCommand("foo", "Foo", handler) {
    };
    assertThat(command.getHelp(), containsString("--bar"));
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.