diff options
author | grootjans <grootjans@gmail.com> | 2012-10-29 23:38:06 +0100 |
---|---|---|
committer | grootjans <grootjans@gmail.com> | 2012-10-30 00:44:45 +0100 |
commit | 11a07262efd3595fd59e52cf81c21c919ff3814f (patch) | |
tree | 2398e9a185a6af4f75da2dd925c800c55a029b84 /test | |
parent | 8a5d637af766d71d4f2b5f87eceec5360de831fa (diff) | |
download | lombok-11a07262efd3595fd59e52cf81c21c919ff3814f.tar.gz lombok-11a07262efd3595fd59e52cf81c21c919ff3814f.tar.bz2 lombok-11a07262efd3595fd59e52cf81c21c919ff3814f.zip |
Added annotation for the slf4j extended logger
Diffstat (limited to 'test')
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 |