aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaarten Mulders <m.th.mulders@xs4all.nl>2014-02-08 20:35:56 +0100
committerMaarten Mulders <m.th.mulders@xs4all.nl>2014-02-08 20:35:56 +0100
commitc0e00edb7bf369470c55d59307bbf80cc3abb9d9 (patch)
tree3243e425833f1f084575b4c148fabb57afd11d81 /test
parent1045006fa9d19c6daf51b2c200176ba789c2372f (diff)
downloadlombok-c0e00edb7bf369470c55d59307bbf80cc3abb9d9.tar.gz
lombok-c0e00edb7bf369470c55d59307bbf80cc3abb9d9.tar.bz2
lombok-c0e00edb7bf369470c55d59307bbf80cc3abb9d9.zip
Handler and testcases for @XSlf4j
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/after-delombok/LoggerXSlf4j.java4
-rw-r--r--test/transform/resource/after-ecj/LoggerXSlf4j.java8
-rw-r--r--test/transform/resource/before/LoggerXSlf4j.java4
3 files changed, 16 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/LoggerXSlf4j.java b/test/transform/resource/after-delombok/LoggerXSlf4j.java
index 981bcca6..d0654b51 100644
--- a/test/transform/resource/after-delombok/LoggerXSlf4j.java
+++ b/test/transform/resource/after-delombok/LoggerXSlf4j.java
@@ -5,4 +5,8 @@ class LoggerXSlf4j {
class LoggerXSlf4jWithImport {
@java.lang.SuppressWarnings("all")
private static final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger(LoggerXSlf4jWithImport.class);
+}
+class LoggerXSlf4jWithDifferentName {
+ @java.lang.SuppressWarnings("all")
+ private static final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger("DifferentName");
} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/LoggerXSlf4j.java b/test/transform/resource/after-ecj/LoggerXSlf4j.java
index f05e1ae7..4cd4cb94 100644
--- a/test/transform/resource/after-ecj/LoggerXSlf4j.java
+++ b/test/transform/resource/after-ecj/LoggerXSlf4j.java
@@ -14,4 +14,12 @@ import lombok.extern.slf4j.XSlf4j;
LoggerXSlf4jWithImport() {
super();
}
+}
+@XSlf4j("DifferentName") class LoggerXSlf4jWithDifferentName {
+ private static final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger("DifferentName");
+ <clinit>() {
+ }
+ LoggerXSlf4jWithDifferentName() {
+ super();
+ }
} \ No newline at end of file
diff --git a/test/transform/resource/before/LoggerXSlf4j.java b/test/transform/resource/before/LoggerXSlf4j.java
index 6dbbf2d1..408bd134 100644
--- a/test/transform/resource/before/LoggerXSlf4j.java
+++ b/test/transform/resource/before/LoggerXSlf4j.java
@@ -6,4 +6,8 @@ class LoggerXSlf4j {
@XSlf4j
class LoggerXSlf4jWithImport {
+}
+
+@XSlf4j("DifferentName")
+class LoggerXSlf4jWithDifferentName {
} \ No newline at end of file