aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaarten Mulders <m.th.mulders@xs4all.nl>2014-02-08 15:38:54 +0100
committerMaarten Mulders <m.th.mulders@xs4all.nl>2014-02-08 15:38:54 +0100
commitebc9ee5f6d6bc89af65d27f472d13f18b34bef18 (patch)
tree9be2954d407f02768a65e2eda6a3e11616aeb509 /test
parente1153c16562dba545f4cc2ecbc26befde6c1a781 (diff)
downloadlombok-ebc9ee5f6d6bc89af65d27f472d13f18b34bef18.tar.gz
lombok-ebc9ee5f6d6bc89af65d27f472d13f18b34bef18.tar.bz2
lombok-ebc9ee5f6d6bc89af65d27f472d13f18b34bef18.zip
Handler and testcases for @Log4j
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/after-delombok/LoggerLog4j.java4
-rw-r--r--test/transform/resource/after-ecj/LoggerLog4j.java8
-rw-r--r--test/transform/resource/before/LoggerLog4j.java4
3 files changed, 16 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/LoggerLog4j.java b/test/transform/resource/after-delombok/LoggerLog4j.java
index 7d54b259..99eac34f 100644
--- a/test/transform/resource/after-delombok/LoggerLog4j.java
+++ b/test/transform/resource/after-delombok/LoggerLog4j.java
@@ -5,4 +5,8 @@ class LoggerLog4j {
class LoggerLog4jWithImport {
@java.lang.SuppressWarnings("all")
private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(LoggerLog4jWithImport.class);
+}
+class LoggerLog4jWithDifferentName {
+ @java.lang.SuppressWarnings("all")
+ private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger("DifferentName");
} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/LoggerLog4j.java b/test/transform/resource/after-ecj/LoggerLog4j.java
index 6814be7b..a6c52d61 100644
--- a/test/transform/resource/after-ecj/LoggerLog4j.java
+++ b/test/transform/resource/after-ecj/LoggerLog4j.java
@@ -14,4 +14,12 @@ import lombok.extern.log4j.Log4j;
LoggerLog4jWithImport() {
super();
}
+}
+@Log4j("DifferentName") class LoggerLog4jWithDifferentName {
+ private static final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger("DifferentName");
+ <clinit>() {
+ }
+ LoggerLog4jWithDifferentName() {
+ super();
+ }
} \ No newline at end of file
diff --git a/test/transform/resource/before/LoggerLog4j.java b/test/transform/resource/before/LoggerLog4j.java
index 03735bff..fa7dad4a 100644
--- a/test/transform/resource/before/LoggerLog4j.java
+++ b/test/transform/resource/before/LoggerLog4j.java
@@ -6,4 +6,8 @@ class LoggerLog4j {
@Log4j
class LoggerLog4jWithImport {
+}
+
+@Log4j("DifferentName")
+class LoggerLog4jWithDifferentName {
} \ No newline at end of file