aboutsummaryrefslogtreecommitdiff
path: root/test/transform
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2015-01-31 04:46:57 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2015-01-31 04:46:57 +0100
commitef1f4e6404be2a50a04c5adc4daba7b171bb26e0 (patch)
tree74c4839c21443e667dd7264a2472bb67da39638a /test/transform
parent6a91c013ca2b20cc378515b83e3584f1dad958c0 (diff)
downloadlombok-ef1f4e6404be2a50a04c5adc4daba7b171bb26e0.tar.gz
lombok-ef1f4e6404be2a50a04c5adc4daba7b171bb26e0.tar.bz2
lombok-ef1f4e6404be2a50a04c5adc4daba7b171bb26e0.zip
added unit tests that confirmed break before the i694 fix and work afterwards.
Diffstat (limited to 'test/transform')
-rw-r--r--test/transform/resource/after-delombok/ValWithLocalClasses.java11
-rw-r--r--test/transform/resource/after-ecj/ValWithLocalClasses.java20
-rw-r--r--test/transform/resource/before/ValWithLocalClasses.java11
3 files changed, 42 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ValWithLocalClasses.java b/test/transform/resource/after-delombok/ValWithLocalClasses.java
new file mode 100644
index 00000000..b739b10e
--- /dev/null
+++ b/test/transform/resource/after-delombok/ValWithLocalClasses.java
@@ -0,0 +1,11 @@
+class ValWithLocalClasses1 {
+ {
+ final ValWithLocalClasses2 f2 = new ValWithLocalClasses2(){
+ };
+ }
+}
+class ValWithLocalClasses2 {
+ {
+ final int f3 = 0;
+ }
+}
diff --git a/test/transform/resource/after-ecj/ValWithLocalClasses.java b/test/transform/resource/after-ecj/ValWithLocalClasses.java
new file mode 100644
index 00000000..59880acf
--- /dev/null
+++ b/test/transform/resource/after-ecj/ValWithLocalClasses.java
@@ -0,0 +1,20 @@
+class ValWithLocalClasses1 {
+ {
+ final @lombok.val ValWithLocalClasses2 f2 = new ValWithLocalClasses2() {
+ x() {
+ super();
+ }
+ };
+ }
+ ValWithLocalClasses1() {
+ super();
+ }
+}
+class ValWithLocalClasses2 {
+ {
+ final @lombok.val int f3 = 0;
+ }
+ ValWithLocalClasses2() {
+ super();
+ }
+}
diff --git a/test/transform/resource/before/ValWithLocalClasses.java b/test/transform/resource/before/ValWithLocalClasses.java
new file mode 100644
index 00000000..8c6be4f9
--- /dev/null
+++ b/test/transform/resource/before/ValWithLocalClasses.java
@@ -0,0 +1,11 @@
+class ValWithLocalClasses1 {
+ {
+ lombok.val f2 = new ValWithLocalClasses2() {};
+ }
+}
+
+class ValWithLocalClasses2 {
+ {
+ lombok.val f3 = 0;
+ }
+} \ No newline at end of file