aboutsummaryrefslogtreecommitdiff
path: root/test/lombok/resource/after
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2009-11-28 23:30:10 +0100
committerRoel Spilker <r.spilker@gmail.com>2009-11-28 23:30:10 +0100
commitffb78b6af6e4ba1426de1bcfc36f43521026e39e (patch)
tree9bb74b92b8f95fe2a807a426c58756291dadddcd /test/lombok/resource/after
parent311b667dfd29b8388686ba046ada2293947105dd (diff)
downloadlombok-ffb78b6af6e4ba1426de1bcfc36f43521026e39e.tar.gz
lombok-ffb78b6af6e4ba1426de1bcfc36f43521026e39e.tar.bz2
lombok-ffb78b6af6e4ba1426de1bcfc36f43521026e39e.zip
Added more Getter-tests
Diffstat (limited to 'test/lombok/resource/after')
-rw-r--r--test/lombok/resource/after/GetterAccessLevel.java19
-rw-r--r--test/lombok/resource/after/GetterAlreadyExists.java66
-rw-r--r--test/lombok/resource/after/GetterBoolean.java20
-rw-r--r--test/lombok/resource/after/GetterPlain.java (renamed from test/lombok/resource/after/PlainGetter.java)0
4 files changed, 105 insertions, 0 deletions
diff --git a/test/lombok/resource/after/GetterAccessLevel.java b/test/lombok/resource/after/GetterAccessLevel.java
new file mode 100644
index 00000000..eec84e85
--- /dev/null
+++ b/test/lombok/resource/after/GetterAccessLevel.java
@@ -0,0 +1,19 @@
+class Getter {
+ boolean isNone;
+ boolean isPrivate;
+ boolean isPackage;
+ boolean isProtected;
+ boolean isPublic;
+ private boolean isPrivate() {
+ return isPrivate;
+ }
+ boolean isPackage() {
+ return isPackage;
+ }
+ protected boolean isProtected() {
+ return isProtected;
+ }
+ public boolean isPublic() {
+ return isPublic;
+ }
+}
diff --git a/test/lombok/resource/after/GetterAlreadyExists.java b/test/lombok/resource/after/GetterAlreadyExists.java
new file mode 100644
index 00000000..152cb372
--- /dev/null
+++ b/test/lombok/resource/after/GetterAlreadyExists.java
@@ -0,0 +1,66 @@
+class Getter1 {
+ boolean foo;
+ boolean hasFoo() {
+ return true;
+ }
+}
+class Getter2 {
+ boolean foo;
+ boolean isFoo() {
+ return true;
+ }
+}
+class Getter3 {
+ boolean foo;
+ boolean getFoo() {
+ return true;
+ }
+}
+class Getter4 {
+ String foo;
+ String hasFoo() {
+ return null;
+ }
+ public String getFoo() {
+ return foo;
+ }
+}
+class Getter5 {
+ String foo;
+ String isFoo() {
+ return null;
+ }
+ public String getFoo() {
+ return foo;
+ }
+}
+class Getter6 {
+ String foo;
+ String getFoo() {
+ return null;
+ }
+}
+class Getter7 {
+ String foo;
+ boolean hasFoo() {
+ return false;
+ }
+ public String getFoo() {
+ return foo;
+ }
+}
+class Getter8 {
+ String foo;
+ boolean isFoo() {
+ return false;
+ }
+ public String getFoo() {
+ return foo;
+ }
+}
+class Getter9 {
+ String foo;
+ boolean getFoo() {
+ return false;
+ }
+} \ No newline at end of file
diff --git a/test/lombok/resource/after/GetterBoolean.java b/test/lombok/resource/after/GetterBoolean.java
new file mode 100644
index 00000000..639d6dc9
--- /dev/null
+++ b/test/lombok/resource/after/GetterBoolean.java
@@ -0,0 +1,20 @@
+class Getter {
+ boolean foo;
+ boolean isBar;
+ boolean hasBaz;
+ public boolean isFoo() {
+ return foo;
+ }
+ public boolean isBar() {
+ return isBar;
+ }
+ public boolean hasBaz() {
+ return hasBaz;
+ }
+}
+class MoreGetter {
+ boolean foo;
+ boolean hasFoo() {
+ return true;
+ }
+} \ No newline at end of file
diff --git a/test/lombok/resource/after/PlainGetter.java b/test/lombok/resource/after/GetterPlain.java
index 04944df8..04944df8 100644
--- a/test/lombok/resource/after/PlainGetter.java
+++ b/test/lombok/resource/after/GetterPlain.java