From 69c70bc273ee7cd70fe312b3ce26a265c98d073d Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 27 Aug 2023 08:39:33 -0400 Subject: [PATCH] Better asserts in test --- .../java/org/apache/commons/lang3/time/StopWatchTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/time/StopWatchTest.java b/src/test/java/org/apache/commons/lang3/time/StopWatchTest.java index 69ac71dcd..7d85c5ab5 100644 --- a/src/test/java/org/apache/commons/lang3/time/StopWatchTest.java +++ b/src/test/java/org/apache/commons/lang3/time/StopWatchTest.java @@ -318,10 +318,10 @@ public class StopWatchTest extends AbstractLangTest { watch.stop(); final long totalTime = watch.getTime(); - assertTrue(suspendTime >= 500); - assertTrue(suspendTime < 700); - assertTrue(totalTime >= 1000); - assertTrue(totalTime < 1300); + assertTrue(suspendTime >= 500, "suspendTime = " + suspendTime); + assertTrue(suspendTime < 700, "suspendTime = " + suspendTime); + assertTrue(totalTime >= 1000, "totalTime = " + totalTime); + assertTrue(totalTime < 1300, "totalTime = " + totalTime); } @Test