diff --git a/base/src/main/java/de/staropensource/sosengine/unittests/UnitLogger.java b/base/src/main/java/de/staropensource/sosengine/unittests/UnitLogger.java index 319a18a..29efd2d 100644 --- a/base/src/main/java/de/staropensource/sosengine/unittests/UnitLogger.java +++ b/base/src/main/java/de/staropensource/sosengine/unittests/UnitLogger.java @@ -46,9 +46,16 @@ public class UnitLogger { StringBuilder args = new StringBuilder(); for (Object arg : additionalStuff) { + boolean stringQuotes = arg instanceof String; + + // Print full class path for enums + if (arg instanceof Enum) { + arg = arg.getClass().getName() + "." + ((Enum) arg).name(); + } + if (!args.isEmpty()) args.append(" "); args.append("'"); - if (arg instanceof String) + if (stringQuotes) args.append("\"").append(arg).append("\""); else args.append(arg);