Java 类org.springframework.boot.cli.command.test.TestCommand 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:CliTester.java   
public String test(String... args) throws Exception {
    Future<TestCommand> future = submitCommand(new TestCommand(), args);
    try {
        this.commands.add(future.get(this.timeout, TimeUnit.MILLISECONDS));
        return getOutput();
    }
    catch (Exception ex) {
        return getOutput();
    }
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:TestCommandIntegrationTests.java   
@Test
public void noFile() throws Exception {
    TestCommand command = new TestCommand();
    this.thrown.expect(RuntimeException.class);
    this.thrown.expectMessage("Can't find nothing.groovy");
    command.run("nothing.groovy");
}
项目:spring-boot-concourse    文件:CliTester.java   
public String test(String... args) throws Exception {
    Future<TestCommand> future = submitCommand(new TestCommand(), args);
    try {
        this.commands.add(future.get(this.timeout, TimeUnit.MILLISECONDS));
        return getOutput();
    }
    catch (Exception ex) {
        return getOutput();
    }
}
项目:spring-boot-concourse    文件:TestCommandIntegrationTests.java   
@Test
public void noFile() throws Exception {
    TestCommand command = new TestCommand();
    this.thrown.expect(RuntimeException.class);
    this.thrown.expectMessage("Can't find nothing.groovy");
    command.run("nothing.groovy");
}
项目:contestparser    文件:CliTester.java   
public String test(String... args) throws Exception {
    Future<TestCommand> future = submitCommand(new TestCommand(), args);
    try {
        this.commands.add(future.get(this.timeout, TimeUnit.MILLISECONDS));
        return getOutput();
    }
    catch (Exception ex) {
        return getOutput();
    }
}
项目:contestparser    文件:TestCommandIntegrationTests.java   
@Test
public void noFile() throws Exception {
    TestCommand command = new TestCommand();
    this.thrown.expect(RuntimeException.class);
    this.thrown.expectMessage("Can't find nothing.groovy");
    command.run("nothing.groovy");
}