aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorgrootjans <grootjans@gmail.com>2012-10-29 23:38:06 +0100
committergrootjans <grootjans@gmail.com>2012-10-30 00:44:45 +0100
commit11a07262efd3595fd59e52cf81c21c919ff3814f (patch)
tree2398e9a185a6af4f75da2dd925c800c55a029b84 /test
parent8a5d637af766d71d4f2b5f87eceec5360de831fa (diff)
downloadlombok-11a07262efd3595fd59e52cf81c21c919ff3814f.tar.gz
lombok-11a07262efd3595fd59e52cf81c21c919ff3814f.tar.bz2
lombok-11a07262efd3595fd59e52cf81c21c919ff3814f.zip
Added annotation for the slf4j extended logger
Diffstat (limited to 'test')
-rw-r--r--test/core/src/lombok/RunTestsViaEcj.java1
-rw-r--r--test/transform/resource/after-delombok/LoggerXSlf4j.java7
-rw-r--r--test/transform/resource/after-ecj/LoggerXSlf4j.java17
-rw-r--r--test/transform/resource/before/LoggerXSlf4j.java9
4 files changed, 34 insertions, 0 deletions
diff --git a/test/core/src/lombok/RunTestsViaEcj.java b/test/core/src/lombok/RunTestsViaEcj.java
index 112f07f9..b081d54a 100644
--- a/test/core/src/lombok/RunTestsViaEcj.java
+++ b/test/core/src/lombok/RunTestsViaEcj.java
@@ -129,6 +129,7 @@ public class RunTestsViaEcj extends AbstractRunTests {
classpath.add("dist/lombok.jar");
classpath.add("lib/test/commons-logging.jar");
classpath.add("lib/test/slf4j-api.jar");
+ classpath.add("lib/test/slf4j-ext.jar");
classpath.add("lib/test/log4j.jar");
return new FileSystem(classpath.toArray(new String[0]), new String[] {file.getAbsolutePath()}, "UTF-8");
}
diff --git a/test/transform/resource/after-delombok/LoggerXSlf4j.java b/test/transform/resource/after-delombok/LoggerXSlf4j.java
new file mode 100644
index 00000000..0239c60b
--- /dev/null
+++ b/test/transform/resource/after-delombok/LoggerXSlf4j.java
@@ -0,0 +1,7 @@
+class LoggerXSlf4j {
+ private static final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger(LoggerXSlf4j.class);
+}
+
+class LoggerXSlf4jWithImport {
+ private static final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger(LoggerXSlf4jWithImport.class);
+} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/LoggerXSlf4j.java b/test/transform/resource/after-ecj/LoggerXSlf4j.java
new file mode 100644
index 00000000..f05e1ae7
--- /dev/null
+++ b/test/transform/resource/after-ecj/LoggerXSlf4j.java
@@ -0,0 +1,17 @@
+import lombok.extern.slf4j.XSlf4j;
+@lombok.extern.slf4j.XSlf4j class LoggerXSlf4j {
+ private static final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger(LoggerXSlf4j.class);
+ <clinit>() {
+ }
+ LoggerXSlf4j() {
+ super();
+ }
+}
+@XSlf4j class LoggerXSlf4jWithImport {
+ private static final org.slf4j.ext.XLogger log = org.slf4j.ext.XLoggerFactory.getXLogger(LoggerXSlf4jWithImport.class);
+ <clinit>() {
+ }
+ LoggerXSlf4jWithImport() {
+ super();
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/LoggerXSlf4j.java b/test/transform/resource/before/LoggerXSlf4j.java
new file mode 100644
index 00000000..6dbbf2d1
--- /dev/null
+++ b/test/transform/resource/before/LoggerXSlf4j.java
@@ -0,0 +1,9 @@
+import lombok.extern.slf4j.XSlf4j;
+
+@lombok.extern.slf4j.XSlf4j
+class LoggerXSlf4j {
+}
+
+@XSlf4j
+class LoggerXSlf4jWithImport {
+} \ No newline at end of file