aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2014-02-06 23:30:32 +0100
committerRoel Spilker <r.spilker@gmail.com>2014-02-06 23:30:32 +0100
commite5574133363c8b718329e07a73bf161416485da5 (patch)
tree87b213c904815ccbf41e8c9344d228406bd92dcd /test/transform/resource
parent143143276da646bcc9a195d827364f8499187a6a (diff)
downloadlombok-e5574133363c8b718329e07a73bf161416485da5.tar.gz
lombok-e5574133363c8b718329e07a73bf161416485da5.tar.bz2
lombok-e5574133363c8b718329e07a73bf161416485da5.zip
[configuration] Added the configuration keys lombok.ToString.doNotUseGetters and lombok.ToString.includeFieldNames
Diffstat (limited to 'test/transform/resource')
-rw-r--r--test/transform/resource/after-delombok/ToStringConfiguration.java32
-rw-r--r--test/transform/resource/after-ecj/ToStringConfiguration.java35
-rw-r--r--test/transform/resource/before/ToStringConfiguration.java13
3 files changed, 80 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ToStringConfiguration.java b/test/transform/resource/after-delombok/ToStringConfiguration.java
new file mode 100644
index 00000000..035ecdb2
--- /dev/null
+++ b/test/transform/resource/after-delombok/ToStringConfiguration.java
@@ -0,0 +1,32 @@
+class ToStringConfiguration {
+ int x;
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "ToStringConfiguration(" + this.x + ")";
+ }
+ @java.lang.SuppressWarnings("all")
+ public int getX() {
+ return this.x;
+ }
+}
+class ToStringConfiguration2 {
+ int x;
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "ToStringConfiguration2(x=" + this.x + ")";
+ }
+}
+class ToStringConfiguration3 {
+ int x;
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "ToStringConfiguration3(" + this.getX() + ")";
+ }
+ @java.lang.SuppressWarnings("all")
+ public int getX() {
+ return this.x;
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/ToStringConfiguration.java b/test/transform/resource/after-ecj/ToStringConfiguration.java
new file mode 100644
index 00000000..8bb99146
--- /dev/null
+++ b/test/transform/resource/after-ecj/ToStringConfiguration.java
@@ -0,0 +1,35 @@
+import lombok.ToString;
+import lombok.Getter;
+@ToString @Getter class ToStringConfiguration {
+ int x;
+ ToStringConfiguration() {
+ super();
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (("ToStringConfiguration(" + this.x) + ")");
+ }
+ public @java.lang.SuppressWarnings("all") int getX() {
+ return this.x;
+ }
+}
+@ToString(includeFieldNames = true) class ToStringConfiguration2 {
+ int x;
+ ToStringConfiguration2() {
+ super();
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (("ToStringConfiguration2(x=" + this.x) + ")");
+ }
+}
+@ToString(doNotUseGetters = false) @Getter class ToStringConfiguration3 {
+ int x;
+ ToStringConfiguration3() {
+ super();
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (("ToStringConfiguration3(" + this.getX()) + ")");
+ }
+ public @java.lang.SuppressWarnings("all") int getX() {
+ return this.x;
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/ToStringConfiguration.java b/test/transform/resource/before/ToStringConfiguration.java
new file mode 100644
index 00000000..7630cda5
--- /dev/null
+++ b/test/transform/resource/before/ToStringConfiguration.java
@@ -0,0 +1,13 @@
+//CONF: lombok.ToString.includeFieldNames = false
+//CONF: lombok.ToString.doNotUseGetters = true
+import lombok.ToString;
+import lombok.Getter;
+@ToString @Getter class ToStringConfiguration {
+ int x;
+}
+@ToString(includeFieldNames=true) class ToStringConfiguration2 {
+ int x;
+}
+@ToString(doNotUseGetters=false) @Getter class ToStringConfiguration3 {
+ int x;
+}