You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@johnzon.apache.org by rs...@apache.org on 2016/07/14 10:09:50 UTC
[2/2] johnzon git commit: JOHNZON-91 ordered expected result
JOHNZON-91 ordered expected result
Project: http://git-wip-us.apache.org/repos/asf/johnzon/repo
Commit: http://git-wip-us.apache.org/repos/asf/johnzon/commit/32f6aa59
Tree: http://git-wip-us.apache.org/repos/asf/johnzon/tree/32f6aa59
Diff: http://git-wip-us.apache.org/repos/asf/johnzon/diff/32f6aa59
Branch: refs/heads/master
Commit: 32f6aa592544dc39f3cb612626bfd6edbb132bbd
Parents: ec70297
Author: Reinhard Sandtner <rs...@apache.org>
Authored: Thu Jul 14 12:08:40 2016 +0200
Committer: Reinhard Sandtner <rs...@apache.org>
Committed: Thu Jul 14 12:08:40 2016 +0200
----------------------------------------------------------------------
.../src/test/java/org/apache/johnzon/mapper/MapperTest.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/johnzon/blob/32f6aa59/johnzon-mapper/src/test/java/org/apache/johnzon/mapper/MapperTest.java
----------------------------------------------------------------------
diff --git a/johnzon-mapper/src/test/java/org/apache/johnzon/mapper/MapperTest.java b/johnzon-mapper/src/test/java/org/apache/johnzon/mapper/MapperTest.java
index 88466e3..594315a 100644
--- a/johnzon-mapper/src/test/java/org/apache/johnzon/mapper/MapperTest.java
+++ b/johnzon-mapper/src/test/java/org/apache/johnzon/mapper/MapperTest.java
@@ -177,6 +177,7 @@ public class MapperTest {
assertOneDimension(k, 5);
final Map<String, Object> sorted = new TreeMap<String, Object>(data);
+ sorted.put("k", new TreeMap((Map) sorted.get("k")));
assertEquals(object.replace(",\"c\":null", ""), mapper.writeObjectAsString(sorted));
}
{ // primitives