You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Jarek Jarcec Cecho (JIRA)" <ji...@apache.org> on 2016/01/18 09:34:39 UTC
[jira] [Comment Edited] (SQOOP-2753)
TestSqoopJsonUtil.testGetJsonStringFromMap is depending on Map ordering in
JDK
[ https://issues.apache.org/jira/browse/SQOOP-2753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15104934#comment-15104934 ]
Jarek Jarcec Cecho edited comment on SQOOP-2753 at 1/18/16 8:33 AM:
--------------------------------------------------------------------
I would encourage you to file a separate JIRA for those [~kingzone], I'm just updating one failing test case and not refactoring the class.
was (Author: jarcec):
I would encourage you to file a separate JIRA for those [~kingzone].
> TestSqoopJsonUtil.testGetJsonStringFromMap is depending on Map ordering in JDK
> ------------------------------------------------------------------------------
>
> Key: SQOOP-2753
> URL: https://issues.apache.org/jira/browse/SQOOP-2753
> Project: Sqoop
> Issue Type: Bug
> Affects Versions: 1.4.6
> Reporter: Jarek Jarcec Cecho
> Assignee: Jarek Jarcec Cecho
> Fix For: 1.4.7
>
> Attachments: SQOOP-2753.patch
>
>
> The test is comparing hardcoded string that represents map, however map order is JDK version specific thus resulting in:
> {code}
> junit.framework.AssertionFailedError: expected:<{"k[3":"v3","k1":"v1","k2":"v2]"}> but was:<{"k[1":"v1","k2":"v2","k3":"v3]"}>
> at org.apache.sqoop.util.TestSqoopJsonUtil.testGetJsonStringFromMap(TestSqoopJsonUtil.java:31)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)