commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1648925 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java
Date Thu, 01 Jan 2015 19:24:08 GMT
Author: britter
Date: Thu Jan  1 19:24:07 2015
New Revision: 1648925

URL: http://svn.apache.org/r1648925
Log:
Add test for merging toString with super toString

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java?rev=1648925&r1=1648924&r2=1648925&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/JsonToStringStyleTest.java
Thu Jan  1 19:24:07 2015
@@ -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



Mime
View raw message