aboutsummaryrefslogtreecommitdiff
path: root/test/lombok/resource/before
diff options
context:
space:
mode:
Diffstat (limited to 'test/lombok/resource/before')
-rw-r--r--test/lombok/resource/before/GetterAccessLevel.java12
-rw-r--r--test/lombok/resource/before/GetterAlreadyExists.java54
-rw-r--r--test/lombok/resource/before/GetterBoolean.java12
-rw-r--r--test/lombok/resource/before/GetterPlain.java6
-rw-r--r--test/lombok/resource/before/PlainGetter.java6
5 files changed, 84 insertions, 6 deletions
diff --git a/test/lombok/resource/before/GetterAccessLevel.java b/test/lombok/resource/before/GetterAccessLevel.java
new file mode 100644
index 00000000..8fd9bcc7
--- /dev/null
+++ b/test/lombok/resource/before/GetterAccessLevel.java
@@ -0,0 +1,12 @@
+class Getter {
+ @lombok.Getter(lombok.AccessLevel.NONE)
+ boolean isNone;
+ @lombok.Getter(lombok.AccessLevel.PRIVATE)
+ boolean isPrivate;
+ @lombok.Getter(lombok.AccessLevel.PACKAGE)
+ boolean isPackage;
+ @lombok.Getter(lombok.AccessLevel.PROTECTED)
+ boolean isProtected;
+ @lombok.Getter(lombok.AccessLevel.PUBLIC)
+ boolean isPublic;
+}
diff --git a/test/lombok/resource/before/GetterAlreadyExists.java b/test/lombok/resource/before/GetterAlreadyExists.java
new file mode 100644
index 00000000..3a22ed36
--- /dev/null
+++ b/test/lombok/resource/before/GetterAlreadyExists.java
@@ -0,0 +1,54 @@
+class Getter1 {
+ @lombok.Getter boolean foo;
+ boolean hasFoo() {
+ return true;
+ }
+}
+class Getter2 {
+ @lombok.Getter boolean foo;
+ boolean isFoo() {
+ return true;
+ }
+}
+class Getter3 {
+ @lombok.Getter boolean foo;
+ boolean getFoo() {
+ return true;
+ }
+}
+class Getter4 {
+ @lombok.Getter String foo;
+ String hasFoo() {
+ return null;
+ }
+}
+class Getter5 {
+ @lombok.Getter String foo;
+ String isFoo() {
+ return null;
+ }
+}
+class Getter6 {
+ @lombok.Getter String foo;
+ String getFoo() {
+ return null;
+ }
+}
+class Getter7 {
+ @lombok.Getter String foo;
+ boolean hasFoo() {
+ return false;
+ }
+}
+class Getter8 {
+ @lombok.Getter String foo;
+ boolean isFoo() {
+ return false;
+ }
+}
+class Getter9 {
+ @lombok.Getter String foo;
+ boolean getFoo() {
+ return false;
+ }
+} \ No newline at end of file
diff --git a/test/lombok/resource/before/GetterBoolean.java b/test/lombok/resource/before/GetterBoolean.java
new file mode 100644
index 00000000..7d53ebbf
--- /dev/null
+++ b/test/lombok/resource/before/GetterBoolean.java
@@ -0,0 +1,12 @@
+class Getter {
+ @lombok.Getter boolean foo;
+ @lombok.Getter boolean isBar;
+ @lombok.Getter boolean hasBaz;
+}
+class MoreGetter {
+ @lombok.Getter boolean foo;
+
+ boolean hasFoo() {
+ return true;
+ }
+} \ No newline at end of file
diff --git a/test/lombok/resource/before/GetterPlain.java b/test/lombok/resource/before/GetterPlain.java
new file mode 100644
index 00000000..e3baf5ae
--- /dev/null
+++ b/test/lombok/resource/before/GetterPlain.java
@@ -0,0 +1,6 @@
+import lombok.Getter;
+
+class Getter {
+ @lombok.Getter int i;
+ @Getter int foo;
+} \ No newline at end of file
diff --git a/test/lombok/resource/before/PlainGetter.java b/test/lombok/resource/before/PlainGetter.java
deleted file mode 100644
index 2db1ee13..00000000
--- a/test/lombok/resource/before/PlainGetter.java
+++ /dev/null
@@ -1,6 +0,0 @@
-import lombok.Getter;
-
-class Getter {
- @Getter int i;
- @lombok.Getter int foo;
-} \ No newline at end of file