diff options
author | unknown <roels@.tis.local> | 2009-12-02 17:37:53 +0100 |
---|---|---|
committer | unknown <roels@.tis.local> | 2009-12-02 17:37:53 +0100 |
commit | d4ed666abfdafc9007734bccf9acf2a80a32770e (patch) | |
tree | 779ed2768b70cb500a1312db2552b1acb31a48f9 | |
parent | db212a2fa08bf43b782cb422526cb3b4f809e295 (diff) | |
download | lombok-d4ed666abfdafc9007734bccf9acf2a80a32770e.tar.gz lombok-d4ed666abfdafc9007734bccf9acf2a80a32770e.tar.bz2 lombok-d4ed666abfdafc9007734bccf9acf2a80a32770e.zip |
Added some tests for @ToString
-rw-r--r-- | test/delombok/resource/after/ToStringInner.java | 32 | ||||
-rw-r--r-- | test/delombok/resource/after/ToStringPlain.java | 16 | ||||
-rw-r--r-- | test/delombok/resource/before/ToStringInner.java | 17 | ||||
-rw-r--r-- | test/delombok/resource/before/ToStringPlain.java | 9 |
4 files changed, 74 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 diff --git a/test/delombok/resource/before/ToStringInner.java b/test/delombok/resource/before/ToStringInner.java new file mode 100644 index 00000000..418c2f92 --- /dev/null +++ b/test/delombok/resource/before/ToStringInner.java @@ -0,0 +1,17 @@ +//ignore +import lombok.ToString; +@ToString class ToStringOuter { + final int x; + String name; + @ToString class ToStringInner { + final int y; + } + @ToString static class ToStringStaticInner { + final int y; + } + class ToStringMiddle { + @ToString class ToStringMoreInner { + final String name; + } + } +}
\ No newline at end of file diff --git a/test/delombok/resource/before/ToStringPlain.java b/test/delombok/resource/before/ToStringPlain.java new file mode 100644 index 00000000..5b9db1c7 --- /dev/null +++ b/test/delombok/resource/before/ToStringPlain.java @@ -0,0 +1,9 @@ +import lombok.ToString; +@lombok.ToString class ToString1 { + final int x; + String name; +} +@ToString class ToString2 { + final int x; + String name; +}
\ No newline at end of file |