{"action":"created","issue":{"url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/572","labels_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/572/labels{/name}","comments_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/572/comments","events_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/572/events","html_url":"https://github.com/joel-costigliola/assertj-core/issues/572","id":124651328,"number":572,"title":"containsExactlyInAnyOrder","user":{"login":"lpandzic","id":4463380,"avatar_url":"https://avatars.githubusercontent.com/u/4463380?v=3","gravatar_id":"","url":"https://api.github.com/users/lpandzic","html_url":"https://github.com/lpandzic","followers_url":"https://api.github.com/users/lpandzic/followers","following_url":"https://api.github.com/users/lpandzic/following{/other_user}","gists_url":"https://api.github.com/users/lpandzic/gists{/gist_id}","starred_url":"https://api.github.com/users/lpandzic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpandzic/subscriptions","organizations_url":"https://api.github.com/users/lpandzic/orgs","repos_url":"https://api.github.com/users/lpandzic/repos","events_url":"https://api.github.com/users/lpandzic/events{/privacy}","received_events_url":"https://api.github.com/users/lpandzic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-03T14:40:17Z","updated_at":"2016-01-04T06:18:42Z","closed_at":null,"body":"In IterableAssertions there is one feature I have found to be missing.\r\nAssert that the Iterable contains exactly the given elements, but in any order. Best name I could find for this method is `containsExactlyInAnyOrder`.\r\nFor example:\r\n```java\r\nObject first = new Object();\r\nObject second = new Object();\r\nObject third = new Object();\r\nList<?> objects = Stream.of(first, first, second, third).collect(Collectors.toList());\r\n```\r\nUsage example:\r\n`assertThat(objects).containsExactlyInAnyOrder(first, second, third, first)`."},"comment":{"url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/comments/168592052","html_url":"https://github.com/joel-costigliola/assertj-core/issues/572#issuecomment-168592052","issue_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/572","id":168592052,"user":{"login":"lpandzic","id":4463380,"avatar_url":"https://avatars.githubusercontent.com/u/4463380?v=3","gravatar_id":"","url":"https://api.github.com/users/lpandzic","html_url":"https://github.com/lpandzic","followers_url":"https://api.github.com/users/lpandzic/followers","following_url":"https://api.github.com/users/lpandzic/following{/other_user}","gists_url":"https://api.github.com/users/lpandzic/gists{/gist_id}","starred_url":"https://api.github.com/users/lpandzic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpandzic/subscriptions","organizations_url":"https://api.github.com/users/lpandzic/orgs","repos_url":"https://api.github.com/users/lpandzic/repos","events_url":"https://api.github.com/users/lpandzic/events{/privacy}","received_events_url":"https://api.github.com/users/lpandzic/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T06:18:42Z","updated_at":"2016-01-04T06:18:42Z","body":"Yes, I don't want the second one to pass.\r\nI need to assert over all the elements, including duplicates, but without order."}}