From 5312be4a25c951cbb48810000db841e4c8dc7658 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 9 Jun 2015 16:41:20 -0700 Subject: [PATCH] Fix CLI package tangle Remove explicit TestFailedException catch in CommandRunner and instead rely on the fact that TestFailedException extends CommandException. Fixes gh-3167 --- .../org/springframework/boot/cli/command/CommandRunner.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java index e646c55737..88bd24d915 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java @@ -25,7 +25,6 @@ import java.util.List; import java.util.Set; import org.springframework.boot.cli.command.status.ExitStatus; -import org.springframework.boot.cli.command.test.TestFailedException; import org.springframework.boot.cli.util.Log; import org.springframework.util.Assert; import org.springframework.util.StringUtils; @@ -180,9 +179,6 @@ public class CommandRunner implements Iterable { showUsage(); return 1; } - catch (TestFailedException e) { - return 1; - } catch (Exception ex) { return handleError(debug, ex); }