{"action":"created","issue":{"url":"https://api.github.com/repos/cloudant/sync-android/issues/133","labels_url":"https://api.github.com/repos/cloudant/sync-android/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/cloudant/sync-android/issues/133/comments","events_url":"https://api.github.com/repos/cloudant/sync-android/issues/133/events","html_url":"https://github.com/cloudant/sync-android/pull/133","id":76755370,"number":133,"title":"Fix failing validator test due to clause order","user":{"login":"alfinkel","id":8793303,"avatar_url":"https://avatars.githubusercontent.com/u/8793303?v=3","gravatar_id":"","url":"https://api.github.com/users/alfinkel","html_url":"https://github.com/alfinkel","followers_url":"https://api.github.com/users/alfinkel/followers","following_url":"https://api.github.com/users/alfinkel/following{/other_user}","gists_url":"https://api.github.com/users/alfinkel/gists{/gist_id}","starred_url":"https://api.github.com/users/alfinkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfinkel/subscriptions","organizations_url":"https://api.github.com/users/alfinkel/orgs","repos_url":"https://api.github.com/users/alfinkel/repos","events_url":"https://api.github.com/users/alfinkel/events{/privacy}","received_events_url":"https://api.github.com/users/alfinkel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-15T15:10:13Z","updated_at":"2015-05-15T15:11:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cloudant/sync-android/pulls/133","html_url":"https://github.com/cloudant/sync-android/pull/133","diff_url":"https://github.com/cloudant/sync-android/pull/133.diff","patch_url":"https://github.com/cloudant/sync-android/pull/133.patch"},"body":"_What_\r\n\r\nWhen a test runs under certain versions of Java, the test fails due to the order of the actual normalized query object and the expected query object not matching due to query clause ordering.\r\n\r\n_Why_\r\n\r\nIn reality the query objects should be considered as a match regardless of clause order and the test should succeed.\r\n\r\n_How_\r\n\r\nChange the QueryValidatorTest.normalizesMultiFieldQueryWithTextSearch test to instantiate the query object as a LinkedHashMap<String, Object> rather than a HashMap<String, Object>.  This will impose an order and will allow the comparison to the expected query which also is a LinkedHashMap to be successful.\r\n\r\nreviewer @rhyshort \r\nreviewer @emlaver \r\n\r\nBugId: 47177"},"comment":{"url":"https://api.github.com/repos/cloudant/sync-android/issues/comments/102427587","html_url":"https://github.com/cloudant/sync-android/pull/133#issuecomment-102427587","issue_url":"https://api.github.com/repos/cloudant/sync-android/issues/133","id":102427587,"user":{"login":"rhyshort","id":1616727,"avatar_url":"https://avatars.githubusercontent.com/u/1616727?v=3","gravatar_id":"","url":"https://api.github.com/users/rhyshort","html_url":"https://github.com/rhyshort","followers_url":"https://api.github.com/users/rhyshort/followers","following_url":"https://api.github.com/users/rhyshort/following{/other_user}","gists_url":"https://api.github.com/users/rhyshort/gists{/gist_id}","starred_url":"https://api.github.com/users/rhyshort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhyshort/subscriptions","organizations_url":"https://api.github.com/users/rhyshort/orgs","repos_url":"https://api.github.com/users/rhyshort/repos","events_url":"https://api.github.com/users/rhyshort/events{/privacy}","received_events_url":"https://api.github.com/users/rhyshort/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T15:11:42Z","updated_at":"2015-05-15T15:11:42Z","body":"+1"}}