{"action":"created","issue":{"url":"https://api.github.com/repos/junit-team/junit4/issues/1216","repository_url":"https://api.github.com/repos/junit-team/junit4","labels_url":"https://api.github.com/repos/junit-team/junit4/issues/1216/labels{/name}","comments_url":"https://api.github.com/repos/junit-team/junit4/issues/1216/comments","events_url":"https://api.github.com/repos/junit-team/junit4/issues/1216/events","html_url":"https://github.com/junit-team/junit4/pull/1216","id":114429958,"number":1216,"title":"A sort of fix for issue #1127","user":{"login":"tomwhoiscontrary","id":539012,"avatar_url":"https://avatars.githubusercontent.com/u/539012?v=3","gravatar_id":"","url":"https://api.github.com/users/tomwhoiscontrary","html_url":"https://github.com/tomwhoiscontrary","followers_url":"https://api.github.com/users/tomwhoiscontrary/followers","following_url":"https://api.github.com/users/tomwhoiscontrary/following{/other_user}","gists_url":"https://api.github.com/users/tomwhoiscontrary/gists{/gist_id}","starred_url":"https://api.github.com/users/tomwhoiscontrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomwhoiscontrary/subscriptions","organizations_url":"https://api.github.com/users/tomwhoiscontrary/orgs","repos_url":"https://api.github.com/users/tomwhoiscontrary/repos","events_url":"https://api.github.com/users/tomwhoiscontrary/events{/privacy}","received_events_url":"https://api.github.com/users/tomwhoiscontrary/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-31T19:40:49Z","updated_at":"2016-05-14T10:49:40Z","closed_at":"2016-05-02T10:33:02Z","pull_request":{"url":"https://api.github.com/repos/junit-team/junit4/pulls/1216","html_url":"https://github.com/junit-team/junit4/pull/1216","diff_url":"https://github.com/junit-team/junit4/pull/1216.diff","patch_url":"https://github.com/junit-team/junit4/pull/1216.patch"},"body":"In issue #1127, @sf105 noted that when comparing two arrays which differ in length, assertArrayEquals() will only report that they differ in length, which he found insufficient for easy diagnosis. As a fix, he suggested printing the complete actual array contents.\r\n\r\nRather than doing that, this PR changes assertArrayEquals() to do the usual array comparison even when arrays differ in length, producing a failure message which combines the difference in length and the first difference in content. I think this should ease diagnosis, as @sf105 wanted, and it doesn't require making big changes to the code, adding Hamcrest, introducing a new behaviour (JUnit doesn't print complete array contents anywhere else), or blowing people's IDEs up when they compare multi-megabyte byte arrays.\r\n"},"comment":{"url":"https://api.github.com/repos/junit-team/junit4/issues/comments/219213799","html_url":"https://github.com/junit-team/junit4/pull/1216#issuecomment-219213799","issue_url":"https://api.github.com/repos/junit-team/junit4/issues/1216","id":219213799,"user":{"login":"marcphilipp","id":214207,"avatar_url":"https://avatars.githubusercontent.com/u/214207?v=3","gravatar_id":"","url":"https://api.github.com/users/marcphilipp","html_url":"https://github.com/marcphilipp","followers_url":"https://api.github.com/users/marcphilipp/followers","following_url":"https://api.github.com/users/marcphilipp/following{/other_user}","gists_url":"https://api.github.com/users/marcphilipp/gists{/gist_id}","starred_url":"https://api.github.com/users/marcphilipp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcphilipp/subscriptions","organizations_url":"https://api.github.com/users/marcphilipp/orgs","repos_url":"https://api.github.com/users/marcphilipp/repos","events_url":"https://api.github.com/users/marcphilipp/events{/privacy}","received_events_url":"https://api.github.com/users/marcphilipp/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T10:49:40Z","updated_at":"2016-05-14T10:49:40Z","body":"@tomwhoiscontrary Feel free to provide a new PR against master. Can you rebase your commits on master first?"}}