{"action":"created","issue":{"url":"https://api.github.com/repos/square/assertj-android/issues/162","labels_url":"https://api.github.com/repos/square/assertj-android/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/square/assertj-android/issues/162/comments","events_url":"https://api.github.com/repos/square/assertj-android/issues/162/events","html_url":"https://github.com/square/assertj-android/issues/162","id":82533546,"number":162,"title":"asserts using isEqualToIgnoringGivenFields or isEqualToComparingFieldByField doesnt work properly","user":{"login":"otoniel-isidoro-sofist","id":3626297,"avatar_url":"https://avatars.githubusercontent.com/u/3626297?v=3","gravatar_id":"","url":"https://api.github.com/users/otoniel-isidoro-sofist","html_url":"https://github.com/otoniel-isidoro-sofist","followers_url":"https://api.github.com/users/otoniel-isidoro-sofist/followers","following_url":"https://api.github.com/users/otoniel-isidoro-sofist/following{/other_user}","gists_url":"https://api.github.com/users/otoniel-isidoro-sofist/gists{/gist_id}","starred_url":"https://api.github.com/users/otoniel-isidoro-sofist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otoniel-isidoro-sofist/subscriptions","organizations_url":"https://api.github.com/users/otoniel-isidoro-sofist/orgs","repos_url":"https://api.github.com/users/otoniel-isidoro-sofist/repos","events_url":"https://api.github.com/users/otoniel-isidoro-sofist/events{/privacy}","received_events_url":"https://api.github.com/users/otoniel-isidoro-sofist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-29T18:24:15Z","updated_at":"2015-05-29T18:34:46Z","closed_at":null,"body":"I have the following objects: \r\n\r\nactual:  \r\nUserInfo{userId='97ed99c1-13d9-4886-99f0-15e3e309bfac', appInstallId='f9d6abaf-e3e4-4281-9ad2-9d8083bd5936', scenarioId=18, advertisingId='803cef82-00af-4c0d-b76e-4f438118ec71', androidId='5ec1103ef436f4f6', imei='null', pushToken='null', platformAccountEmail='[]', deviceSystemName='ANDROID', deviceSystemVersion='5.1', deviceCountry='US', deviceLanguage='en', deviceTimezone='-3', deviceManufacturer='unknown', deviceModel='Android SDK built for x86', appInstalledAt=1432823697421, appVersion='0.11.3', appSdkVersion='0.11.4', tags=null}\r\n\r\nexpected: \r\nUserInfo{userId='97ed99c1-13d9-4886-99f0-15e3e309bfac', appInstallId='f9d6abaf-e3e4-4281-9ad2-9d8083bd5936', scenarioId=17, advertisingId='803cef82-00af-4c0d-b76e-4f438118ec71', androidId='5ec1103ef436f4f6', imei='null', pushToken='APA91bE_u2RlHz9HmiK68-RQfZcDTU_Wzsf7xZgYPp4orGmsrs5uXZ1tmE56TsPiqxfUtGuAxRTuayC0_vmeLiyATEJNaG8z_i6RdP9Oj-rD2zyJp6pFduBrvdO6gjJgAHLup5V5WVIFKzGIkZ3wyBG3WNvKc9Ecpg', platformAccountEmail='[]', deviceSystemName='ANDROID', deviceSystemVersion='5.1', deviceCountry='US', deviceLanguage='en', deviceTimezone='-3', deviceManufacturer='unknown', deviceModel='Android SDK built for x86', appInstalledAt=1432823697421, appVersion='0.11.3', appSdkVersion='0.11.4', tags=null}\r\n\r\nWhen I use isEqualTo assertions the following failure is threw properly:\r\norg.junit.ComparisonFailure: expected:<...d5936', scenarioId=3[3, advertisingId='803cef82-00af-4c0d-b76e-4f438118ec71', androidId='5ec1103ef436f4f6', imei='null', pushToken='APA91bE_u2RlHz9HmiK68-RQfZcDTU_Wzsf7xZgYPp4orGmsrs5uXZ1tmE56TsPiqxfUtGuAxRTuayC0_vmeLiyATEJNaG8z_i6RdP9Oj-rD2zyJp6pFduBrvdO6gjJgAHLup5V5WVIFKzGIkZ3wyBG3WNvKc9Ecpg]', platformAccountEm...> but was:<...d5936', scenarioId=3[4, advertisingId='803cef82-00af-4c0d-b76e-4f438118ec71', androidId='5ec1103ef436f4f6', imei='null', pushToken='null]', platformAccountEm...>\r\n\r\nBut, when I use isEqualToComparingFieldByField or isEqualToIgnoringGivenFields the test pass even with different values on object's fields.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/square/assertj-android/issues/comments/106898709","html_url":"https://github.com/square/assertj-android/issues/162#issuecomment-106898709","issue_url":"https://api.github.com/repos/square/assertj-android/issues/162","id":106898709,"user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T18:34:46Z","updated_at":"2015-05-29T18:34:46Z","body":"Those features are from AssertJ not AssertJ-Android. Please file a bug on\nthe AssertJ project.\n\nOn Fri, May 29, 2015, 11:24 AM Otoniel <notifications@github.com> wrote:\n\n> I have the following objects:\n>\n> actual:\n>\n> UserInfo{userId='97ed99c1-13d9-4886-99f0-15e3e309bfac',\n> appInstallId='f9d6abaf-e3e4-4281-9ad2-9d8083bd5936', scenarioId=18,\n> advertisingId='803cef82-00af-4c0d-b76e-4f438118ec71',\n> androidId='5ec1103ef436f4f6', imei='null', pushToken='null',\n> platformAccountEmail='[]', deviceSystemName='ANDROID',\n> deviceSystemVersion='5.1', deviceCountry='US', deviceLanguage='en',\n> deviceTimezone='-3', deviceManufacturer='unknown', deviceModel='Android SDK\n> built for x86', appInstalledAt=1432823697421, appVersion='0.11.3',\n> appSdkVersion='0.11.4', tags=null}\n>\n> expected:\n> UserInfo{userId='97ed99c1-13d9-4886-99f0-15e3e309bfac',\n> appInstallId='f9d6abaf-e3e4-4281-9ad2-9d8083bd5936', scenarioId=17,\n> advertisingId='803cef82-00af-4c0d-b76e-4f438118ec71',\n> androidId='5ec1103ef436f4f6', imei='null',\n> pushToken='APA91bE_u2RlHz9HmiK68-RQfZcDTU_Wzsf7xZgYPp4orGmsrs5uXZ1tmE56TsPiqxfUtGuAxRTuayC0_vmeLiyATEJNaG8z_i6RdP9Oj-rD2zyJp6pFduBrvdO6gjJgAHLup5V5WVIFKzGIkZ3wyBG3WNvKc9Ecpg',\n> platformAccountEmail='[]', deviceSystemName='ANDROID',\n> deviceSystemVersion='5.1', deviceCountry='US', deviceLanguage='en',\n> deviceTimezone='-3', deviceManufacturer='unknown', deviceModel='Android SDK\n> built for x86', appInstalledAt=1432823697421, appVersion='0.11.3',\n> appSdkVersion='0.11.4', tags=null}\n>\n> When I use isEqualTo assertions the following failure is threw properly:\n> org.junit.ComparisonFailure: expected:<...d5936', scenarioId=3[3,\n> advertisingId='803cef82-00af-4c0d-b76e-4f438118ec71',\n> androidId='5ec1103ef436f4f6', imei='null',\n> pushToken='APA91bE_u2RlHz9HmiK68-RQfZcDTU_Wzsf7xZgYPp4orGmsrs5uXZ1tmE56TsPiqxfUtGuAxRTuayC0_vmeLiyATEJNaG8z_i6RdP9Oj-rD2zyJp6pFduBrvdO6gjJgAHLup5V5WVIFKzGIkZ3wyBG3WNvKc9Ecpg]',\n> platformAccountEm...> but was:<...d5936', scenarioId=3[4,\n> advertisingId='803cef82-00af-4c0d-b76e-4f438118ec71',\n> androidId='5ec1103ef436f4f6', imei='null', pushToken='null]',\n> platformAccountEm...>\n>\n> But, when I use isEqualToComparingFieldByField or\n> isEqualToIgnoringGivenFields the test pass even with different values on\n> fields of the objects.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/square/assertj-android/issues/162>.\n>\n"}}