aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/after-delombok/GetterWithJavaBeansSpecCapitalization.java28
-rw-r--r--test/transform/resource/after-delombok/SetterWithJavaBeansSpecCapitalization.java27
-rw-r--r--test/transform/resource/after-delombok/ValueWithJavaBeansSpecCapitalization.java77
-rw-r--r--test/transform/resource/after-delombok/WithOnJavaBeansSpecCapitalization.java29
-rw-r--r--test/transform/resource/after-ecj/GetterWithJavaBeansSpecCapitalization.java33
-rw-r--r--test/transform/resource/after-ecj/SetterWithJavaBeansSpecCapitalization.java33
-rw-r--r--test/transform/resource/after-ecj/ValueWithJavaBeansSpecCapitalization.java58
-rw-r--r--test/transform/resource/after-ecj/WithOnJavaBeansSpecCapitalization.java25
-rw-r--r--test/transform/resource/before/GetterWithJavaBeansSpecCapitalization.java11
-rw-r--r--test/transform/resource/before/SetterWithJavaBeansSpecCapitalization.java11
-rw-r--r--test/transform/resource/before/ValueWithJavaBeansSpecCapitalization.java10
-rw-r--r--test/transform/resource/before/WithOnJavaBeansSpecCapitalization.java16
12 files changed, 358 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/GetterWithJavaBeansSpecCapitalization.java b/test/transform/resource/after-delombok/GetterWithJavaBeansSpecCapitalization.java
new file mode 100644
index 00000000..06026c1b
--- /dev/null
+++ b/test/transform/resource/after-delombok/GetterWithJavaBeansSpecCapitalization.java
@@ -0,0 +1,28 @@
+class GetterWithoutJavaBeansSpecCapitalization {
+ int a;
+ int aField;
+ @java.lang.SuppressWarnings("all")
+ public int getA() {
+ return this.a;
+ }
+ @java.lang.SuppressWarnings("all")
+ public int getAField() {
+ return this.aField;
+ }
+}
+
+
+class GetterWithJavaBeansSpecCapitalization {
+ int a;
+ int aField;
+ @java.lang.SuppressWarnings("all")
+ public int getA() {
+ return this.a;
+ }
+ @java.lang.SuppressWarnings("all")
+ public int getaField() {
+ return this.aField;
+ }
+}
+
+
diff --git a/test/transform/resource/after-delombok/SetterWithJavaBeansSpecCapitalization.java b/test/transform/resource/after-delombok/SetterWithJavaBeansSpecCapitalization.java
new file mode 100644
index 00000000..24c8e883
--- /dev/null
+++ b/test/transform/resource/after-delombok/SetterWithJavaBeansSpecCapitalization.java
@@ -0,0 +1,27 @@
+class SetterWithoutJavaBeansSpecCapitalization {
+ int a;
+ int aField;
+ @java.lang.SuppressWarnings("all")
+ public void setA(final int a) {
+ this.a = a;
+ }
+ @java.lang.SuppressWarnings("all")
+ public void setAField(final int aField) {
+ this.aField = aField;
+ }
+}
+
+class SetterWithJavaBeansSpecCapitalization {
+ int a;
+ int aField;
+ @java.lang.SuppressWarnings("all")
+ public void setA(final int a) {
+ this.a = a;
+ }
+ @java.lang.SuppressWarnings("all")
+ public void setaField(final int aField) {
+ this.aField = aField;
+ }
+}
+
+
diff --git a/test/transform/resource/after-delombok/ValueWithJavaBeansSpecCapitalization.java b/test/transform/resource/after-delombok/ValueWithJavaBeansSpecCapitalization.java
new file mode 100644
index 00000000..20139baf
--- /dev/null
+++ b/test/transform/resource/after-delombok/ValueWithJavaBeansSpecCapitalization.java
@@ -0,0 +1,77 @@
+final class ValueWithJavaBeansSpecCapitalization {
+ private final int aField;
+
+ @java.lang.SuppressWarnings("all")
+ public ValueWithJavaBeansSpecCapitalization(final int aField) {
+ this.aField = aField;
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public int getaField() {
+ return this.aField;
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public boolean equals(final java.lang.Object o) {
+ if (o == this) return true;
+ if (!(o instanceof ValueWithJavaBeansSpecCapitalization)) return false;
+ final ValueWithJavaBeansSpecCapitalization other = (ValueWithJavaBeansSpecCapitalization) o;
+ if (this.getaField() != other.getaField()) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = result * PRIME + this.getaField();
+ return result;
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "ValueWithJavaBeansSpecCapitalization(aField=" + this.getaField() + ")";
+ }
+}
+
+final class ValueWithoutJavaBeansSpecCapitalization {
+ private final int aField;
+
+ @java.lang.SuppressWarnings("all")
+ public ValueWithoutJavaBeansSpecCapitalization(final int aField) {
+ this.aField = aField;
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public int getAField() {
+ return this.aField;
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public boolean equals(final java.lang.Object o) {
+ if (o == this) return true;
+ if (!(o instanceof ValueWithoutJavaBeansSpecCapitalization)) return false;
+ final ValueWithoutJavaBeansSpecCapitalization other = (ValueWithoutJavaBeansSpecCapitalization) o;
+ if (this.getAField() != other.getAField()) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = result * PRIME + this.getAField();
+ return result;
+ }
+
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "ValueWithoutJavaBeansSpecCapitalization(aField=" + this.getAField() + ")";
+ }
+}
diff --git a/test/transform/resource/after-delombok/WithOnJavaBeansSpecCapitalization.java b/test/transform/resource/after-delombok/WithOnJavaBeansSpecCapitalization.java
new file mode 100644
index 00000000..afed2f0e
--- /dev/null
+++ b/test/transform/resource/after-delombok/WithOnJavaBeansSpecCapitalization.java
@@ -0,0 +1,29 @@
+class WithOnJavaBeansSpecCapitalization {
+ int aField;
+
+ WithOnJavaBeansSpecCapitalization(int aField) {
+ }
+
+ /**
+ * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
+ */
+ @java.lang.SuppressWarnings("all")
+ public WithOnJavaBeansSpecCapitalization withaField(final int aField) {
+ return this.aField == aField ? this : new WithOnJavaBeansSpecCapitalization(aField);
+ }
+}
+
+class WithOffJavaBeansSpecCapitalization {
+ int aField;
+
+ WithOffJavaBeansSpecCapitalization(int aField) {
+ }
+
+ /**
+ * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
+ */
+ @java.lang.SuppressWarnings("all")
+ public WithOffJavaBeansSpecCapitalization withAField(final int aField) {
+ return this.aField == aField ? this : new WithOffJavaBeansSpecCapitalization(aField);
+ }
+}
diff --git a/test/transform/resource/after-ecj/GetterWithJavaBeansSpecCapitalization.java b/test/transform/resource/after-ecj/GetterWithJavaBeansSpecCapitalization.java
new file mode 100644
index 00000000..d605b4ac
--- /dev/null
+++ b/test/transform/resource/after-ecj/GetterWithJavaBeansSpecCapitalization.java
@@ -0,0 +1,33 @@
+class GetterWithoutJavaBeansSpecCapitalization {
+ @lombok.Getter int a;
+ @lombok.Getter int aField;
+
+ GetterWithoutJavaBeansSpecCapitalization() {
+ super();
+ }
+
+ public @java.lang.SuppressWarnings("all") int getA() {
+ return this.a;
+ }
+
+ public @java.lang.SuppressWarnings("all") int getAField() {
+ return this.aField;
+ }
+}
+
+@lombok.experimental.Accessors(javaBeansSpecCapitalization = true) class GetterWithJavaBeansSpecCapitalization {
+ @lombok.Getter int a;
+ @lombok.Getter int aField;
+
+ GetterWithJavaBeansSpecCapitalization() {
+ super();
+ }
+
+ public @java.lang.SuppressWarnings("all") int getA() {
+ return this.a;
+ }
+
+ public @java.lang.SuppressWarnings("all") int getaField() {
+ return this.aField;
+ }
+}
diff --git a/test/transform/resource/after-ecj/SetterWithJavaBeansSpecCapitalization.java b/test/transform/resource/after-ecj/SetterWithJavaBeansSpecCapitalization.java
new file mode 100644
index 00000000..9907621f
--- /dev/null
+++ b/test/transform/resource/after-ecj/SetterWithJavaBeansSpecCapitalization.java
@@ -0,0 +1,33 @@
+class SetterWithoutJavaBeansSpecCapitalization {
+ @lombok.Setter int a;
+ @lombok.Setter int aField;
+
+ SetterWithoutJavaBeansSpecCapitalization() {
+ super();
+ }
+
+ public @java.lang.SuppressWarnings("all") void setA(final int a) {
+ this.a = a;
+ }
+
+ public @java.lang.SuppressWarnings("all") void setAField(final int aField) {
+ this.aField = aField;
+ }
+}
+
+@lombok.experimental.Accessors(javaBeansSpecCapitalization = true) class SetterWithJavaBeansSpecCapitalization {
+ @lombok.Setter int a;
+ @lombok.Setter int aField;
+
+ SetterWithJavaBeansSpecCapitalization() {
+ super();
+ }
+
+ public @java.lang.SuppressWarnings("all") void setA(final int a) {
+ this.a = a;
+ }
+
+ public @java.lang.SuppressWarnings("all") void setaField(final int aField) {
+ this.aField = aField;
+ }
+}
diff --git a/test/transform/resource/after-ecj/ValueWithJavaBeansSpecCapitalization.java b/test/transform/resource/after-ecj/ValueWithJavaBeansSpecCapitalization.java
new file mode 100644
index 00000000..f41fcf58
--- /dev/null
+++ b/test/transform/resource/after-ecj/ValueWithJavaBeansSpecCapitalization.java
@@ -0,0 +1,58 @@
+final @lombok.Value @lombok.experimental.Accessors(javaBeansSpecCapitalization = true) class ValueWithJavaBeansSpecCapitalization {
+ private final int aField;
+ public @java.lang.SuppressWarnings("all") int getaField() {
+ return this.aField;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
+ if ((o == this))
+ return true;
+ if ((! (o instanceof ValueWithJavaBeansSpecCapitalization)))
+ return false;
+ final ValueWithJavaBeansSpecCapitalization other = (ValueWithJavaBeansSpecCapitalization) o;
+ if ((this.getaField() != other.getaField()))
+ return false;
+ return true;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = ((result * PRIME) + this.getaField());
+ return result;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (("ValueWithJavaBeansSpecCapitalization(aField=" + this.getaField()) + ")");
+ }
+ public @java.lang.SuppressWarnings("all") ValueWithJavaBeansSpecCapitalization(final int aField) {
+ super();
+ this.aField = aField;
+ }
+}
+final @lombok.Value class ValueWithoutJavaBeansSpecCapitalization {
+ private final int aField;
+ public @java.lang.SuppressWarnings("all") int getAField() {
+ return this.aField;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") boolean equals(final java.lang.Object o) {
+ if ((o == this))
+ return true;
+ if ((! (o instanceof ValueWithoutJavaBeansSpecCapitalization)))
+ return false;
+ final ValueWithoutJavaBeansSpecCapitalization other = (ValueWithoutJavaBeansSpecCapitalization) o;
+ if ((this.getAField() != other.getAField()))
+ return false;
+ return true;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = ((result * PRIME) + this.getAField());
+ return result;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (("ValueWithoutJavaBeansSpecCapitalization(aField=" + this.getAField()) + ")");
+ }
+ public @java.lang.SuppressWarnings("all") ValueWithoutJavaBeansSpecCapitalization(final int aField) {
+ super();
+ this.aField = aField;
+ }
+}
diff --git a/test/transform/resource/after-ecj/WithOnJavaBeansSpecCapitalization.java b/test/transform/resource/after-ecj/WithOnJavaBeansSpecCapitalization.java
new file mode 100644
index 00000000..06164fe9
--- /dev/null
+++ b/test/transform/resource/after-ecj/WithOnJavaBeansSpecCapitalization.java
@@ -0,0 +1,25 @@
+@lombok.With @lombok.experimental.Accessors(javaBeansSpecCapitalization = true) class WithOnJavaBeansSpecCapitalization {
+ int aField;
+ WithOnJavaBeansSpecCapitalization(int aField) {
+ super();
+ }
+ /**
+ * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
+ */
+ public @java.lang.SuppressWarnings("all") WithOnJavaBeansSpecCapitalization withaField(final int aField) {
+ return ((this.aField == aField) ? this : new WithOnJavaBeansSpecCapitalization(aField));
+ }
+}
+
+@lombok.With class WithOffJavaBeansSpecCapitalization {
+ int aField;
+ WithOffJavaBeansSpecCapitalization(int aField) {
+ super();
+ }
+ /**
+ * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
+ */
+ public @java.lang.SuppressWarnings("all") WithOffJavaBeansSpecCapitalization withAField(final int aField) {
+ return ((this.aField == aField) ? this : new WithOffJavaBeansSpecCapitalization(aField));
+ }
+}
diff --git a/test/transform/resource/before/GetterWithJavaBeansSpecCapitalization.java b/test/transform/resource/before/GetterWithJavaBeansSpecCapitalization.java
new file mode 100644
index 00000000..3c27317c
--- /dev/null
+++ b/test/transform/resource/before/GetterWithJavaBeansSpecCapitalization.java
@@ -0,0 +1,11 @@
+class GetterWithoutJavaBeansSpecCapitalization {
+ @lombok.Getter int a;
+ @lombok.Getter int aField;
+}
+
+@lombok.experimental.Accessors(javaBeansSpecCapitalization=true)
+class GetterWithJavaBeansSpecCapitalization {
+ @lombok.Getter int a;
+ @lombok.Getter int aField;
+}
+
diff --git a/test/transform/resource/before/SetterWithJavaBeansSpecCapitalization.java b/test/transform/resource/before/SetterWithJavaBeansSpecCapitalization.java
new file mode 100644
index 00000000..80a1b4ee
--- /dev/null
+++ b/test/transform/resource/before/SetterWithJavaBeansSpecCapitalization.java
@@ -0,0 +1,11 @@
+class SetterWithoutJavaBeansSpecCapitalization {
+ @lombok.Setter int a;
+ @lombok.Setter int aField;
+}
+
+@lombok.experimental.Accessors(javaBeansSpecCapitalization=true)
+class SetterWithJavaBeansSpecCapitalization {
+ @lombok.Setter int a;
+ @lombok.Setter int aField;
+}
+
diff --git a/test/transform/resource/before/ValueWithJavaBeansSpecCapitalization.java b/test/transform/resource/before/ValueWithJavaBeansSpecCapitalization.java
new file mode 100644
index 00000000..f0044ed9
--- /dev/null
+++ b/test/transform/resource/before/ValueWithJavaBeansSpecCapitalization.java
@@ -0,0 +1,10 @@
+@lombok.Value
+@lombok.experimental.Accessors(javaBeansSpecCapitalization = true)
+class ValueWithJavaBeansSpecCapitalization {
+ final int aField;
+}
+
+@lombok.Value
+class ValueWithoutJavaBeansSpecCapitalization {
+ final int aField;
+}
diff --git a/test/transform/resource/before/WithOnJavaBeansSpecCapitalization.java b/test/transform/resource/before/WithOnJavaBeansSpecCapitalization.java
new file mode 100644
index 00000000..476fb5a4
--- /dev/null
+++ b/test/transform/resource/before/WithOnJavaBeansSpecCapitalization.java
@@ -0,0 +1,16 @@
+@lombok.With
+@lombok.experimental.Accessors(javaBeansSpecCapitalization = true)
+class WithOnJavaBeansSpecCapitalization {
+ int aField;
+
+ WithOnJavaBeansSpecCapitalization(int aField) {
+ }
+}
+
+@lombok.With
+class WithOffJavaBeansSpecCapitalization {
+ int aField;
+
+ WithOffJavaBeansSpecCapitalization(int aField) {
+ }
+}