aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/Accessors.java50
-rw-r--r--test/transform/resource/before/Constructors.java6
-rw-r--r--test/transform/resource/before/SetterAlreadyExists.java6
3 files changed, 58 insertions, 4 deletions
diff --git a/test/transform/resource/before/Accessors.java b/test/transform/resource/before/Accessors.java
new file mode 100644
index 00000000..3ef8a02f
--- /dev/null
+++ b/test/transform/resource/before/Accessors.java
@@ -0,0 +1,50 @@
+class AccessorsFluent {
+ @lombok.Getter @lombok.Setter @lombok.experimental.Accessors(fluent=true)
+ private String fieldName = "";
+}
+
+@lombok.experimental.Accessors(fluent=true)
+@lombok.Getter
+class AccessorsFluentOnClass {
+ @lombok.Setter private String fieldName = "";
+ @lombok.experimental.Accessors private String otherFieldWithOverride = "";
+}
+
+class AccessorsChain {
+ @lombok.Setter @lombok.experimental.Accessors(chain=true) private boolean isRunning;
+}
+
+@lombok.experimental.Accessors(prefix="f")
+class AccessorsPrefix {
+ @lombok.Setter private String fieldName;
+ @lombok.Setter private String fActualField;
+}
+
+@lombok.experimental.Accessors(prefix={"f", ""})
+class AccessorsPrefix2 {
+ @lombok.Setter private String fieldName;
+ @lombok.Setter private String fActualField;
+}
+
+@lombok.experimental.Accessors(prefix="f")
+@lombok.ToString
+@lombok.EqualsAndHashCode
+class AccessorsPrefix3 {
+ private String fName;
+
+ private String getName() {
+ return fName;
+ }
+}
+
+class AccessorsFluentGenerics<T extends Number> {
+ @lombok.Setter @lombok.experimental.Accessors(fluent=true) private String name;
+}
+
+class AccessorsFluentNoChaining {
+ @lombok.Setter @lombok.experimental.Accessors(fluent=true,chain=false) private String name;
+}
+
+class AccessorsFluentStatic<T extends Number> {
+ @lombok.Setter @lombok.experimental.Accessors(fluent=true) private static String name;
+} \ No newline at end of file
diff --git a/test/transform/resource/before/Constructors.java b/test/transform/resource/before/Constructors.java
index 6ac228d6..272fa850 100644
--- a/test/transform/resource/before/Constructors.java
+++ b/test/transform/resource/before/Constructors.java
@@ -17,4 +17,8 @@
@lombok.NoArgsConstructor class NoArgsConstructor1 {
int x;
String name;
-} \ No newline at end of file
+}
+@lombok.RequiredArgsConstructor(staticName="of") class RequiredArgsConstructorStaticNameGenerics<T extends Number> {
+ final T x;
+ String name;
+}
diff --git a/test/transform/resource/before/SetterAlreadyExists.java b/test/transform/resource/before/SetterAlreadyExists.java
index 9ac56d8a..8d995b39 100644
--- a/test/transform/resource/before/SetterAlreadyExists.java
+++ b/test/transform/resource/before/SetterAlreadyExists.java
@@ -30,16 +30,16 @@ class Setter6 {
}
class Setter7 {
@lombok.Setter String foo;
- static void setFoo() {
+ void setFoo(String foo, Object... x) {
}
}
class Setter8 {
@lombok.Setter boolean isFoo;
- void setIsFoo() {
+ void setIsFoo(boolean foo) {
}
}
class Setter9 {
@lombok.Setter boolean isFoo;
- void setFoo() {
+ void setFoo(boolean foo) {
}
} \ No newline at end of file