Add test for merging toString with super toString

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1648925 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benedikt Ritter 2015-01-01 19:24:07 +00:00
parent d903279e44
commit 51607308c7
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ public class JsonToStringStyleTest {
+ "]").append("a", "hello").toString());
assertEquals("{\"a\":\"hello\"}", new ToStringBuilder(base)
.appendSuper(null).append("a", "hello").toString());
assertEquals("{\"a\":\"hello\",\"b\":\"world\"}", new ToStringBuilder(base)
.appendSuper("{\"a\":\"hello\"}").append("b", "world").toString());
}
@Test