aboutsummaryrefslogtreecommitdiff
path: root/test/delombok/resource/after
diff options
context:
space:
mode:
authorunknown <roels@.tis.local>2009-12-02 17:37:53 +0100
committerunknown <roels@.tis.local>2009-12-02 17:37:53 +0100
commitd4ed666abfdafc9007734bccf9acf2a80a32770e (patch)
tree779ed2768b70cb500a1312db2552b1acb31a48f9 /test/delombok/resource/after
parentdb212a2fa08bf43b782cb422526cb3b4f809e295 (diff)
downloadlombok-d4ed666abfdafc9007734bccf9acf2a80a32770e.tar.gz
lombok-d4ed666abfdafc9007734bccf9acf2a80a32770e.tar.bz2
lombok-d4ed666abfdafc9007734bccf9acf2a80a32770e.zip
Added some tests for @ToString
Diffstat (limited to 'test/delombok/resource/after')
-rw-r--r--test/delombok/resource/after/ToStringInner.java32
-rw-r--r--test/delombok/resource/after/ToStringPlain.java16
2 files changed, 48 insertions, 0 deletions
diff --git a/test/delombok/resource/after/ToStringInner.java b/test/delombok/resource/after/ToStringInner.java
new file mode 100644
index 00000000..29e7dc91
--- /dev/null
+++ b/test/delombok/resource/after/ToStringInner.java
@@ -0,0 +1,32 @@
+class ToStringOuter {
+ final int x;
+ String name;
+ class ToStringInner {
+ final int y;
+ @java.lang.Override
+ public java.lang.String toString() {
+ return "ToStringOuter.ToStringInner(y=" + y + ")";
+ }
+ }
+ static class ToStringStaticInner {
+ final int y;
+ @java.lang.Override
+ public java.lang.String toString() {
+ return "ToStringOuter.ToStringStaticInner(y=" + y + ")";
+ }
+ }
+ class ToStringMiddle {
+ class ToStringMoreInner {
+ final String name;
+ @java.lang.Override
+ public java.lang.String toString() {
+ return "ToStringOuter.ToStringMiddle.ToStringMoreInner(name=" + name + ")";
+ }
+ }
+ }
+
+ @java.lang.Override
+ public java.lang.String toString() {
+ return "ToStringOuter(x=" + x + ", name=" + name + ")";
+ }
+} \ No newline at end of file
diff --git a/test/delombok/resource/after/ToStringPlain.java b/test/delombok/resource/after/ToStringPlain.java
new file mode 100644
index 00000000..4f71e392
--- /dev/null
+++ b/test/delombok/resource/after/ToStringPlain.java
@@ -0,0 +1,16 @@
+class ToString1 {
+ final int x;
+ String name;
+ @java.lang.Override
+ public java.lang.String toString() {
+ return "ToString1(x=" + x + ", name=" + name + ")";
+ }
+}
+class ToString2 {
+ final int x;
+ String name;
+ @java.lang.Override
+ public java.lang.String toString() {
+ return "ToString2(x=" + x + ", name=" + name + ")";
+ }
+} \ No newline at end of file