From 29dab4fd7e6ca3fc8ebb0a10fe5cf268d005f832 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20K=C3=BChne?= Date: Tue, 6 Jan 2004 14:54:15 +0000 Subject: [PATCH] added assertion failure message --- .../com/puppycrawl/tools/checkstyle/BaseCheckTestCase.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tests/com/puppycrawl/tools/checkstyle/BaseCheckTestCase.java b/src/tests/com/puppycrawl/tools/checkstyle/BaseCheckTestCase.java index b5794231c..65f7e6229 100644 --- a/src/tests/com/puppycrawl/tools/checkstyle/BaseCheckTestCase.java +++ b/src/tests/com/puppycrawl/tools/checkstyle/BaseCheckTestCase.java @@ -118,7 +118,9 @@ public abstract class BaseCheckTestCase final String actual = lnr.readLine(); assertEquals("error message " + i, expected, actual); } - assertEquals(aExpected.length, errs); + + assertEquals("unexpected output: " + lnr.readLine(), + aExpected.length, errs); aC.destroy(); } }