aboutsummaryrefslogtreecommitdiff
path: root/test/delombok/resource/before
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2010-07-20 22:22:12 +0200
committerRoel Spilker <r.spilker@gmail.com>2010-07-20 22:22:12 +0200
commitb6d468144d1abd84646f31aabdb2cbee053a4137 (patch)
treea38822a4e00d5ffd98de9c6d1fa64816e057cfa3 /test/delombok/resource/before
parentb49472094901ce272de255dab9d9eac18ab5f91e (diff)
downloadlombok-b6d468144d1abd84646f31aabdb2cbee053a4137.tar.gz
lombok-b6d468144d1abd84646f31aabdb2cbee053a4137.tar.bz2
lombok-b6d468144d1abd84646f31aabdb2cbee053a4137.zip
Added tests for @Getter and @Setter on a class[B
Diffstat (limited to 'test/delombok/resource/before')
-rw-r--r--test/delombok/resource/before/GetterOnClass.java37
-rw-r--r--test/delombok/resource/before/SetterOnClass.java37
2 files changed, 74 insertions, 0 deletions
diff --git a/test/delombok/resource/before/GetterOnClass.java b/test/delombok/resource/before/GetterOnClass.java
new file mode 100644
index 00000000..0a38b386
--- /dev/null
+++ b/test/delombok/resource/before/GetterOnClass.java
@@ -0,0 +1,37 @@
+@lombok.Getter
+class GetterOnClass1 {
+ @lombok.Getter(lombok.AccessLevel.NONE)
+ boolean isNone;
+ boolean isPublic;
+}
+@lombok.Getter(lombok.AccessLevel.PROTECTED)
+class GetterOnClass2 {
+ @lombok.Getter(lombok.AccessLevel.NONE)
+ boolean isNone;
+ boolean isProtected;
+ @lombok.Getter(lombok.AccessLevel.PACKAGE)
+ boolean isPackage;
+}
+@lombok.Getter(lombok.AccessLevel.PACKAGE)
+class GetterOnClass3 {
+ @lombok.Getter(lombok.AccessLevel.NONE)
+ boolean isNone;
+ boolean isPackage;
+}
+@lombok.Getter(lombok.AccessLevel.PRIVATE)
+class GetterOnClass4 {
+ @lombok.Getter(lombok.AccessLevel.NONE)
+ boolean isNone;
+ boolean isPrivate;
+}
+@lombok.Getter(lombok.AccessLevel.PUBLIC)
+class GetterOnClass5 {
+ @lombok.Getter(lombok.AccessLevel.NONE)
+ boolean isNone;
+ boolean isPublic;
+}
+@lombok.Getter
+class GetterOnClass6 {
+ String couldBeNull;
+ @lombok.NonNull String nonNull;
+} \ No newline at end of file
diff --git a/test/delombok/resource/before/SetterOnClass.java b/test/delombok/resource/before/SetterOnClass.java
new file mode 100644
index 00000000..5d195ff5
--- /dev/null
+++ b/test/delombok/resource/before/SetterOnClass.java
@@ -0,0 +1,37 @@
+@lombok.Setter
+class SetterOnClass1 {
+ @lombok.Setter(lombok.AccessLevel.NONE)
+ boolean isNone;
+ boolean isPublic;
+}
+@lombok.Setter(lombok.AccessLevel.PROTECTED)
+class SetterOnClass2 {
+ @lombok.Setter(lombok.AccessLevel.NONE)
+ boolean isNone;
+ boolean isProtected;
+ @lombok.Setter(lombok.AccessLevel.PACKAGE)
+ boolean isPackage;
+}
+@lombok.Setter(lombok.AccessLevel.PACKAGE)
+class SetterOnClass3 {
+ @lombok.Setter(lombok.AccessLevel.NONE)
+ boolean isNone;
+ boolean isPackage;
+}
+@lombok.Setter(lombok.AccessLevel.PRIVATE)
+class SetterOnClass4 {
+ @lombok.Setter(lombok.AccessLevel.NONE)
+ boolean isNone;
+ boolean isPrivate;
+}
+@lombok.Setter(lombok.AccessLevel.PUBLIC)
+class SetterOnClass5 {
+ @lombok.Setter(lombok.AccessLevel.NONE)
+ boolean isNone;
+ boolean isPublic;
+}
+@lombok.Setter
+class SetterOnClass6 {
+ String couldBeNull;
+ @lombok.NonNull String nonNull;
+} \ No newline at end of file