Java 类org.springframework.boot.cli.command.options.OptionHandler 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:OptionParsingCommandTests.java   
@Test
public void optionHelp() {
    OptionHandler handler = new OptionHandler();
    handler.option("bar", "Bar");
    OptionParsingCommand command = new TestOptionParsingCommand("foo", "Foo",
            handler);
    assertThat(command.getHelp()).contains("--bar");
}
项目:spring-boot-concourse    文件:OptionParsingCommandTests.java   
@Test
public void optionHelp() {
    OptionHandler handler = new OptionHandler();
    handler.option("bar", "Bar");
    OptionParsingCommand command = new TestOptionParsingCommand("foo", "Foo",
            handler);
    assertThat(command.getHelp()).contains("--bar");
}
项目:contestparser    文件:OptionParsingCommandTests.java   
@Test
public void optionHelp() {
    OptionHandler handler = new OptionHandler();
    handler.option("bar", "Bar");
    OptionParsingCommand command = new OptionParsingCommand("foo", "Foo", handler) {
    };
    assertThat(command.getHelp(), containsString("--bar"));
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:ArchiveCommand.java   
protected ArchiveCommand(String name, String description,
        OptionHandler optionHandler) {
    super(name, description, optionHandler);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:OptionParsingCommand.java   
protected OptionParsingCommand(String name, String description,
        OptionHandler handler) {
    super(name, description);
    this.handler = handler;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:OptionParsingCommand.java   
protected OptionHandler getHandler() {
    return this.handler;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:OptionParsingCommandTests.java   
TestOptionParsingCommand(String name, String description, OptionHandler handler) {
    super(name, description, handler);
}
项目:spring-boot-concourse    文件:ArchiveCommand.java   
protected ArchiveCommand(String name, String description,
        OptionHandler optionHandler) {
    super(name, description, optionHandler);
}
项目:spring-boot-concourse    文件:OptionParsingCommand.java   
protected OptionParsingCommand(String name, String description,
        OptionHandler handler) {
    super(name, description);
    this.handler = handler;
}
项目:spring-boot-concourse    文件:OptionParsingCommand.java   
protected OptionHandler getHandler() {
    return this.handler;
}
项目:spring-boot-concourse    文件:OptionParsingCommandTests.java   
TestOptionParsingCommand(String name, String description, OptionHandler handler) {
    super(name, description, handler);
}
项目:contestparser    文件:ArchiveCommand.java   
protected ArchiveCommand(String name, String description,
        OptionHandler optionHandler) {
    super(name, description, optionHandler);
}
项目:contestparser    文件:OptionParsingCommand.java   
protected OptionParsingCommand(String name, String description,
        OptionHandler handler) {
    super(name, description);
    this.handler = handler;
}
项目:contestparser    文件:OptionParsingCommand.java   
protected OptionHandler getHandler() {
    return this.handler;
}