aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
authorWerner Dietl <wdietl@gmail.com>2018-08-30 12:23:07 -0400
committerReinier Zwitserloot <reinier@zwitserloot.com>2018-09-11 01:59:19 +0200
commitc3f34a8447ee4be38193a0c98ab4d265556bd8d7 (patch)
tree8510760421b0423c34e9b2f53a33491dd9d47f14 /test/transform/resource/before
parentced71c5468310c389e23ccee66420b255278be03 (diff)
downloadlombok-c3f34a8447ee4be38193a0c98ab4d265556bd8d7.tar.gz
lombok-c3f34a8447ee4be38193a0c98ab4d265556bd8d7.tar.bz2
lombok-c3f34a8447ee4be38193a0c98ab4d265556bd8d7.zip
Test cases for remaining features.
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/BuilderTypeAnnosCopy.java14
-rw-r--r--test/transform/resource/before/BuilderTypeAnnosNoCopy.java12
-rw-r--r--test/transform/resource/before/ConstructorsTypeAnnosCopy.java14
-rw-r--r--test/transform/resource/before/ConstructorsTypeAnnosNoCopy.java12
-rw-r--r--test/transform/resource/before/SetterTypeAnnosCopy.java16
-rw-r--r--test/transform/resource/before/SetterTypeAnnosNoCopy.java14
-rw-r--r--test/transform/resource/before/WitherTypeAnnosCopy.java19
-rw-r--r--test/transform/resource/before/WitherTypeAnnosNoCopy.java17
8 files changed, 118 insertions, 0 deletions
diff --git a/test/transform/resource/before/BuilderTypeAnnosCopy.java b/test/transform/resource/before/BuilderTypeAnnosCopy.java
new file mode 100644
index 00000000..e5ea9e41
--- /dev/null
+++ b/test/transform/resource/before/BuilderTypeAnnosCopy.java
@@ -0,0 +1,14 @@
+//CONF: lombok.copyAnnotations += TA
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+@lombok.Builder
+class BuilderTypeAnnos {
+ private @TA List<@TA String> foo;
+}
diff --git a/test/transform/resource/before/BuilderTypeAnnosNoCopy.java b/test/transform/resource/before/BuilderTypeAnnosNoCopy.java
new file mode 100644
index 00000000..2defba7b
--- /dev/null
+++ b/test/transform/resource/before/BuilderTypeAnnosNoCopy.java
@@ -0,0 +1,12 @@
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+@lombok.Builder
+class BuilderTypeAnnos {
+ private @TA List<@TA String> foo;
+}
diff --git a/test/transform/resource/before/ConstructorsTypeAnnosCopy.java b/test/transform/resource/before/ConstructorsTypeAnnosCopy.java
new file mode 100644
index 00000000..229927c3
--- /dev/null
+++ b/test/transform/resource/before/ConstructorsTypeAnnosCopy.java
@@ -0,0 +1,14 @@
+//CONF: lombok.copyAnnotations += TA
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+@lombok.AllArgsConstructor
+class ConstructorsTypeAnnos {
+ @TA List<@TA String> foo;
+}
diff --git a/test/transform/resource/before/ConstructorsTypeAnnosNoCopy.java b/test/transform/resource/before/ConstructorsTypeAnnosNoCopy.java
new file mode 100644
index 00000000..7bc27008
--- /dev/null
+++ b/test/transform/resource/before/ConstructorsTypeAnnosNoCopy.java
@@ -0,0 +1,12 @@
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+@lombok.AllArgsConstructor
+class ConstructorsTypeAnnos {
+ @TA List<@TA String> foo;
+}
diff --git a/test/transform/resource/before/SetterTypeAnnosCopy.java b/test/transform/resource/before/SetterTypeAnnosCopy.java
new file mode 100644
index 00000000..d9d086f0
--- /dev/null
+++ b/test/transform/resource/before/SetterTypeAnnosCopy.java
@@ -0,0 +1,16 @@
+//CONF: lombok.copyAnnotations += TA
+
+import lombok.Setter;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class SetterTypeAnnos {
+ @Setter
+ @TA List<@TA String> foo;
+}
diff --git a/test/transform/resource/before/SetterTypeAnnosNoCopy.java b/test/transform/resource/before/SetterTypeAnnosNoCopy.java
new file mode 100644
index 00000000..e3666543
--- /dev/null
+++ b/test/transform/resource/before/SetterTypeAnnosNoCopy.java
@@ -0,0 +1,14 @@
+import lombok.Setter;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class SetterTypeAnnos {
+ @Setter
+ @TA List<@TA String> foo;
+}
diff --git a/test/transform/resource/before/WitherTypeAnnosCopy.java b/test/transform/resource/before/WitherTypeAnnosCopy.java
new file mode 100644
index 00000000..645682f5
--- /dev/null
+++ b/test/transform/resource/before/WitherTypeAnnosCopy.java
@@ -0,0 +1,19 @@
+//CONF: lombok.copyAnnotations += TA
+
+import lombok.experimental.Wither;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class WitherTypeAnnos {
+ @Wither final @TA List<@TA String> foo;
+
+ WitherTypeAnnos(@TA List<@TA String> foo) {
+ this.foo = foo;
+ }
+}
diff --git a/test/transform/resource/before/WitherTypeAnnosNoCopy.java b/test/transform/resource/before/WitherTypeAnnosNoCopy.java
new file mode 100644
index 00000000..d278af55
--- /dev/null
+++ b/test/transform/resource/before/WitherTypeAnnosNoCopy.java
@@ -0,0 +1,17 @@
+import lombok.experimental.Wither;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class WitherTypeAnnos {
+ @Wither final @TA List<@TA String> foo;
+
+ WitherTypeAnnos(@TA List<@TA String> foo) {
+ this.foo = foo;
+ }
+}