From bc1f91af3a764f0aa81ca441918c16a1d7969a07 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Sun, 19 Jan 2014 07:01:10 +0100 Subject: [trivial] added test for logger config keys. --- test/transform/resource/after-delombok/LoggerConfig.java | 4 ++++ test/transform/resource/after-ecj/LoggerConfig.java | 6 ++++++ test/transform/resource/before/FlagUsages.java | 6 +++--- test/transform/resource/before/LoggerConfig.java | 5 +++++ 4 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 test/transform/resource/after-delombok/LoggerConfig.java create mode 100644 test/transform/resource/after-ecj/LoggerConfig.java create mode 100644 test/transform/resource/before/LoggerConfig.java (limited to 'test/transform/resource') diff --git a/test/transform/resource/after-delombok/LoggerConfig.java b/test/transform/resource/after-delombok/LoggerConfig.java new file mode 100644 index 00000000..ba955638 --- /dev/null +++ b/test/transform/resource/after-delombok/LoggerConfig.java @@ -0,0 +1,4 @@ +class LoggerWithConfig { + @java.lang.SuppressWarnings("all") + private final org.slf4j.Logger myLogger = org.slf4j.LoggerFactory.getLogger(LoggerWithConfig.class); +} \ No newline at end of file diff --git a/test/transform/resource/after-ecj/LoggerConfig.java b/test/transform/resource/after-ecj/LoggerConfig.java new file mode 100644 index 00000000..907a7167 --- /dev/null +++ b/test/transform/resource/after-ecj/LoggerConfig.java @@ -0,0 +1,6 @@ +@lombok.extern.slf4j.Slf4j class LoggerWithConfig { + private final org.slf4j.Logger myLogger = org.slf4j.LoggerFactory.getLogger(LoggerWithConfig.class); + LoggerWithConfig() { + super(); + } +} \ No newline at end of file diff --git a/test/transform/resource/before/FlagUsages.java b/test/transform/resource/before/FlagUsages.java index d6cb331a..8fc8b306 100644 --- a/test/transform/resource/before/FlagUsages.java +++ b/test/transform/resource/before/FlagUsages.java @@ -1,8 +1,8 @@ -//conf: lombok.Getter.flagUsage = WARNING -//conf: lombok.experimental.flagUsage = ERROR +//CONF: lombok.Getter.flagUsage = WARNING +//CONF: lombok.experimental.flagUsage = ERROR public class FlagUsages { @lombok.Getter String x; - + @lombok.experimental.Wither String z; public FlagUsages(String x, String y) { diff --git a/test/transform/resource/before/LoggerConfig.java b/test/transform/resource/before/LoggerConfig.java new file mode 100644 index 00000000..14195e03 --- /dev/null +++ b/test/transform/resource/before/LoggerConfig.java @@ -0,0 +1,5 @@ +//CONF: lombok.log.fieldName = myLogger +//CONF: lombok.log.fieldIsStatic = false +@lombok.extern.slf4j.Slf4j +class LoggerWithConfig { +} -- cgit