From 51607308c7ca4bf736a749b18aa722684a3b6b61 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Thu, 1 Jan 2015 19:24:07 +0000 Subject: [PATCH] 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 --- .../apache/commons/lang3/builder/JsonToStringStyleTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java b/src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java index 101dafb7c..530e6793f 100644 --- a/src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java +++ b/src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java @@ -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