From 420d09f99de34fc1303656aafc498bb1188b52ed Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Fri, 19 Mar 2021 02:38:58 +0100 Subject: [testing] restore the printing of the actual/expected when tests fail. --- src/support/lombok/ant/SimpleTestFormatter.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/support/lombok/ant/SimpleTestFormatter.java') diff --git a/src/support/lombok/ant/SimpleTestFormatter.java b/src/support/lombok/ant/SimpleTestFormatter.java index 2f605d06..a2a38420 100644 --- a/src/support/lombok/ant/SimpleTestFormatter.java +++ b/src/support/lombok/ant/SimpleTestFormatter.java @@ -42,13 +42,15 @@ public class SimpleTestFormatter implements JUnitResultFormatter { } @Override - public void setSystemError(String err) { - // don't echo test error output + public void setSystemError(String msg) { + if (msg.trim().isEmpty()) return; + out.println(msg); } @Override - public void setSystemOutput(String out) { - // don't echo test output + public void setSystemOutput(String msg) { + if (msg.trim().isEmpty()) return; + out.println(msg); } @Override -- cgit