aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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