From a7846977bafbb495f9d5fde6e1eaaa5de29eed75 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Thu, 24 Dec 2020 17:27:39 -0800 Subject: [PATCH] use junit fail instead of throw (#2114) * use junit fail * no pause --- java_console/autotest/src/com/rusefi/TestingUtils.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/java_console/autotest/src/com/rusefi/TestingUtils.java b/java_console/autotest/src/com/rusefi/TestingUtils.java index f76b6f17e0..0a927730bb 100644 --- a/java_console/autotest/src/com/rusefi/TestingUtils.java +++ b/java_console/autotest/src/com/rusefi/TestingUtils.java @@ -15,6 +15,8 @@ import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicReference; +import static org.junit.Assert.fail; + import static com.devexperts.logging.Logging.getLogging; import static com.rusefi.waves.EngineReport.isCloseEnough; @@ -52,13 +54,6 @@ public class TestingUtils { return angle; } - private static void fail(String message) { - log.info("FAILURE: " + message); - IllegalStateException exception = new IllegalStateException(message); - FileLog.MAIN.log(exception); - throw exception; - } - static void assertTrue(boolean b) { if (!b) fail("Not true");