{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/comments/41279421","id":41279421,"diff_hunk":"@@ -79,7 +80,7 @@ public void setUp() throws Exception {\n     \n     @Test\n     public void testGetPoliciesIsInitiallyEmpty() {\n-        assertEquals(entity.getPolicies(), ImmutableList.of());\n+        assertEquals(ImmutableList.copyOf(entity.policies()), ImmutableList.of());","path":"core/src/test/java/org/apache/brooklyn/core/entity/PolicyRegistrationTest.java","position":27,"original_position":27,"commit_id":"4d08310c3b60a299086af179a35d8449b24e81ce","original_commit_id":"4d08310c3b60a299086af179a35d8449b24e81ce","user":{"login":"alasdairhodge","id":837473,"avatar_url":"https://avatars.githubusercontent.com/u/837473?v=3","gravatar_id":"","url":"https://api.github.com/users/alasdairhodge","html_url":"https://github.com/alasdairhodge","followers_url":"https://api.github.com/users/alasdairhodge/followers","following_url":"https://api.github.com/users/alasdairhodge/following{/other_user}","gists_url":"https://api.github.com/users/alasdairhodge/gists{/gist_id}","starred_url":"https://api.github.com/users/alasdairhodge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alasdairhodge/subscriptions","organizations_url":"https://api.github.com/users/alasdairhodge/orgs","repos_url":"https://api.github.com/users/alasdairhodge/repos","events_url":"https://api.github.com/users/alasdairhodge/events{/privacy}","received_events_url":"https://api.github.com/users/alasdairhodge/received_events","type":"User","site_admin":false},"body":"Maybe suggest Guava's `Iterables.elementsEqual()` here (and elsewhere) but no strong feelings.","created_at":"2015-10-06T15:28:23Z","updated_at":"2015-10-06T15:28:23Z","html_url":"https://github.com/apache/incubator-brooklyn/pull/935#discussion_r41279421","pull_request_url":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/935","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/comments/41279421"},"html":{"href":"https://github.com/apache/incubator-brooklyn/pull/935#discussion_r41279421"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/935"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/935","id":46791837,"html_url":"https://github.com/apache/incubator-brooklyn/pull/935","diff_url":"https://github.com/apache/incubator-brooklyn/pull/935.diff","patch_url":"https://github.com/apache/incubator-brooklyn/pull/935.patch","issue_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/935","number":935,"state":"open","locked":false,"title":"Use entity.sensors().* etc, instead of deprecated methods","user":{"login":"aledsage","id":593113,"avatar_url":"https://avatars.githubusercontent.com/u/593113?v=3","gravatar_id":"","url":"https://api.github.com/users/aledsage","html_url":"https://github.com/aledsage","followers_url":"https://api.github.com/users/aledsage/followers","following_url":"https://api.github.com/users/aledsage/following{/other_user}","gists_url":"https://api.github.com/users/aledsage/gists{/gist_id}","starred_url":"https://api.github.com/users/aledsage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aledsage/subscriptions","organizations_url":"https://api.github.com/users/aledsage/orgs","repos_url":"https://api.github.com/users/aledsage/repos","events_url":"https://api.github.com/users/aledsage/events{/privacy}","received_events_url":"https://api.github.com/users/aledsage/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-05T15:02:18Z","updated_at":"2015-10-06T15:28:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a30bc0c91534caddf9a3e891a6ca530c0aad322","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/935/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/935/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/935/comments","statuses_url":"https://api.github.com/repos/apache/incubator-brooklyn/statuses/4d08310c3b60a299086af179a35d8449b24e81ce","head":{"label":"aledsage:refactor/use-entity.sensors","ref":"refactor/use-entity.sensors","sha":"4d08310c3b60a299086af179a35d8449b24e81ce","user":{"login":"aledsage","id":593113,"avatar_url":"https://avatars.githubusercontent.com/u/593113?v=3","gravatar_id":"","url":"https://api.github.com/users/aledsage","html_url":"https://github.com/aledsage","followers_url":"https://api.github.com/users/aledsage/followers","following_url":"https://api.github.com/users/aledsage/following{/other_user}","gists_url":"https://api.github.com/users/aledsage/gists{/gist_id}","starred_url":"https://api.github.com/users/aledsage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aledsage/subscriptions","organizations_url":"https://api.github.com/users/aledsage/orgs","repos_url":"https://api.github.com/users/aledsage/repos","events_url":"https://api.github.com/users/aledsage/events{/privacy}","received_events_url":"https://api.github.com/users/aledsage/received_events","type":"User","site_admin":false},"repo":{"id":21017170,"name":"incubator-brooklyn","full_name":"aledsage/incubator-brooklyn","owner":{"login":"aledsage","id":593113,"avatar_url":"https://avatars.githubusercontent.com/u/593113?v=3","gravatar_id":"","url":"https://api.github.com/users/aledsage","html_url":"https://github.com/aledsage","followers_url":"https://api.github.com/users/aledsage/followers","following_url":"https://api.github.com/users/aledsage/following{/other_user}","gists_url":"https://api.github.com/users/aledsage/gists{/gist_id}","starred_url":"https://api.github.com/users/aledsage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aledsage/subscriptions","organizations_url":"https://api.github.com/users/aledsage/orgs","repos_url":"https://api.github.com/users/aledsage/repos","events_url":"https://api.github.com/users/aledsage/events{/privacy}","received_events_url":"https://api.github.com/users/aledsage/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aledsage/incubator-brooklyn","description":"Mirror of Apache Brooklyn","fork":true,"url":"https://api.github.com/repos/aledsage/incubator-brooklyn","forks_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/forks","keys_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/teams","hooks_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/hooks","issue_events_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/issues/events{/number}","events_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/events","assignees_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/assignees{/user}","branches_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/branches{/branch}","tags_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/tags","blobs_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/statuses/{sha}","languages_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/languages","stargazers_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/stargazers","contributors_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/contributors","subscribers_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/subscribers","subscription_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/subscription","commits_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/contents/{+path}","compare_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/merges","archive_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/downloads","issues_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/issues{/number}","pulls_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/pulls{/number}","milestones_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/milestones{/number}","notifications_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/labels{/name}","releases_url":"https://api.github.com/repos/aledsage/incubator-brooklyn/releases{/id}","created_at":"2014-06-19T22:03:41Z","updated_at":"2015-04-17T16:32:12Z","pushed_at":"2015-10-05T19:42:30Z","git_url":"git://github.com/aledsage/incubator-brooklyn.git","ssh_url":"git@github.com:aledsage/incubator-brooklyn.git","clone_url":"https://github.com/aledsage/incubator-brooklyn.git","svn_url":"https://github.com/aledsage/incubator-brooklyn","homepage":null,"size":252472,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"8636eb30247d6456c994c00156f00fd94a44e4fe","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":19368221,"name":"incubator-brooklyn","full_name":"apache/incubator-brooklyn","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-brooklyn","description":"Mirror of Apache Brooklyn","fork":false,"url":"https://api.github.com/repos/apache/incubator-brooklyn","forks_url":"https://api.github.com/repos/apache/incubator-brooklyn/forks","keys_url":"https://api.github.com/repos/apache/incubator-brooklyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-brooklyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-brooklyn/teams","hooks_url":"https://api.github.com/repos/apache/incubator-brooklyn/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-brooklyn/events","assignees_url":"https://api.github.com/repos/apache/incubator-brooklyn/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-brooklyn/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-brooklyn/tags","blobs_url":"https://api.github.com/repos/apache/incubator-brooklyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-brooklyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-brooklyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-brooklyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-brooklyn/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-brooklyn/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-brooklyn/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-brooklyn/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-brooklyn/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-brooklyn/subscription","commits_url":"https://api.github.com/repos/apache/incubator-brooklyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-brooklyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-brooklyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-brooklyn/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-brooklyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-brooklyn/merges","archive_url":"https://api.github.com/repos/apache/incubator-brooklyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-brooklyn/downloads","issues_url":"https://api.github.com/repos/apache/incubator-brooklyn/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-brooklyn/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-brooklyn/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-brooklyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-brooklyn/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-brooklyn/releases{/id}","created_at":"2014-05-02T07:00:07Z","updated_at":"2015-10-06T14:54:59Z","pushed_at":"2015-10-06T15:12:28Z","git_url":"git://github.com/apache/incubator-brooklyn.git","ssh_url":"git@github.com:apache/incubator-brooklyn.git","clone_url":"https://github.com/apache/incubator-brooklyn.git","svn_url":"https://github.com/apache/incubator-brooklyn","homepage":null,"size":263007,"stargazers_count":115,"watchers_count":115,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":90,"mirror_url":"git://git.apache.org/incubator-brooklyn.git","open_issues_count":22,"forks":90,"open_issues":22,"watchers":115,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/935"},"html":{"href":"https://github.com/apache/incubator-brooklyn/pull/935"},"issue":{"href":"https://api.github.com/repos/apache/incubator-brooklyn/issues/935"},"comments":{"href":"https://api.github.com/repos/apache/incubator-brooklyn/issues/935/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/935/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-brooklyn/pulls/935/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-brooklyn/statuses/4d08310c3b60a299086af179a35d8449b24e81ce"}}}}