sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kathl...@apache.org
Subject sqoop git commit: SQOOP-2753: TestSqoopJsonUtil.testGetJsonStringFromMap is depending on Map ordering in JDK (Jarek Jarcec Cecho via Kate Ting)
Date Mon, 18 Jan 2016 19:16:14 GMT
Repository: sqoop
Updated Branches:
  refs/heads/trunk 55d8b4a7b -> 43319f1d7


SQOOP-2753: TestSqoopJsonUtil.testGetJsonStringFromMap is depending on Map ordering in JDK
 (Jarek Jarcec Cecho via Kate Ting)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/43319f1d
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/43319f1d
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/43319f1d

Branch: refs/heads/trunk
Commit: 43319f1d71058973f285d6a3ab95a53395793b58
Parents: 55d8b4a
Author: Kate Ting <kathleen@apache.org>
Authored: Mon Jan 18 11:15:33 2016 -0800
Committer: Kate Ting <kathleen@apache.org>
Committed: Mon Jan 18 11:15:33 2016 -0800

----------------------------------------------------------------------
 src/test/org/apache/sqoop/util/TestSqoopJsonUtil.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/43319f1d/src/test/org/apache/sqoop/util/TestSqoopJsonUtil.java
----------------------------------------------------------------------
diff --git a/src/test/org/apache/sqoop/util/TestSqoopJsonUtil.java b/src/test/org/apache/sqoop/util/TestSqoopJsonUtil.java
index 4cbc8a1..859e97d 100644
--- a/src/test/org/apache/sqoop/util/TestSqoopJsonUtil.java
+++ b/src/test/org/apache/sqoop/util/TestSqoopJsonUtil.java
@@ -26,9 +26,10 @@ public class TestSqoopJsonUtil {
   }
 
   @Test
-  public void testGetJsonStringFromMap() {
+  public void testMapToStringAndBack() {
     String resultJsonStr = SqoopJsonUtil.getJsonStringforMap(paramMap);
-    assertEquals(jsonStr, resultJsonStr);
+    Map<String, String> resultMap = SqoopJsonUtil.getMapforJsonString(jsonStr);
+    assertEquals(paramMap, resultMap);
   }
 
   @Test


Mime
View raw message