aboutsummaryrefslogtreecommitdiff
path: root/test/transform
diff options
context:
space:
mode:
authorWerner Dietl <wdietl@gmail.com>2018-08-30 00:09:09 -0400
committerReinier Zwitserloot <reinier@zwitserloot.com>2018-09-11 01:59:19 +0200
commit859cb5cf8c4b8beb7a93336b5484414c7ee42c05 (patch)
tree13762b4b1fa3b4024f450ee19c89b9937c0947b4 /test/transform
parentfc35839c793dfe2e3294c0f526dcc4cb5741533b (diff)
downloadlombok-859cb5cf8c4b8beb7a93336b5484414c7ee42c05.tar.gz
lombok-859cb5cf8c4b8beb7a93336b5484414c7ee42c05.tar.bz2
lombok-859cb5cf8c4b8beb7a93336b5484414c7ee42c05.zip
First attempt at adding Getter test cases.
Diffstat (limited to 'test/transform')
-rw-r--r--test/transform/resource/after-delombok/GetterTypeAnnosCopy.java18
-rw-r--r--test/transform/resource/after-delombok/GetterTypeAnnosNoCopy.java17
-rw-r--r--test/transform/resource/before/GetterTypeAnnosCopy.java16
-rw-r--r--test/transform/resource/before/GetterTypeAnnosNoCopy.java14
4 files changed, 65 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/GetterTypeAnnosCopy.java b/test/transform/resource/after-delombok/GetterTypeAnnosCopy.java
new file mode 100644
index 00000000..cde6cbdd
--- /dev/null
+++ b/test/transform/resource/after-delombok/GetterTypeAnnosCopy.java
@@ -0,0 +1,18 @@
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class GetterTypeAnnos {
+ @TA
+ List<@TA String> foo;
+
+ @TA
+ @java.lang.SuppressWarnings("all")
+ public List<@TA String> getFoo() {
+ return this.foo;
+ }
+}
diff --git a/test/transform/resource/after-delombok/GetterTypeAnnosNoCopy.java b/test/transform/resource/after-delombok/GetterTypeAnnosNoCopy.java
new file mode 100644
index 00000000..58054de6
--- /dev/null
+++ b/test/transform/resource/after-delombok/GetterTypeAnnosNoCopy.java
@@ -0,0 +1,17 @@
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class GetterTypeAnnos {
+ @TA
+ List<@TA String> foo;
+
+ @java.lang.SuppressWarnings("all")
+ public List<@TA String> getFoo() {
+ return this.foo;
+ }
+}
diff --git a/test/transform/resource/before/GetterTypeAnnosCopy.java b/test/transform/resource/before/GetterTypeAnnosCopy.java
new file mode 100644
index 00000000..69152e1f
--- /dev/null
+++ b/test/transform/resource/before/GetterTypeAnnosCopy.java
@@ -0,0 +1,16 @@
+//CONF: lombok.copyAnnotations += TA
+
+import lombok.Getter;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class GetterTypeAnnos {
+ @Getter
+ @TA List<@TA String> foo;
+}
diff --git a/test/transform/resource/before/GetterTypeAnnosNoCopy.java b/test/transform/resource/before/GetterTypeAnnosNoCopy.java
new file mode 100644
index 00000000..48513f32
--- /dev/null
+++ b/test/transform/resource/before/GetterTypeAnnosNoCopy.java
@@ -0,0 +1,14 @@
+import lombok.Getter;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+import java.util.List;
+
+@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
+@interface TA {
+}
+
+class GetterTypeAnnos {
+ @Getter
+ @TA List<@TA String> foo;
+}