{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/antenna/pulls/comments/316526132","pull_request_review_id":278227659,"id":316526132,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMxNjUyNjEzMg==","diff_hunk":"@@ -0,0 +1,36 @@\n+/*\n+ * Copyright (c) Bosch Software Innovations GmbH 2019.\n+ *\n+ * All rights reserved. This program and the accompanying materials\n+ * are made available under the terms of the Eclipse Public License v2.0\n+ * which accompanies this distribution, and is available at\n+ * http://www.eclipse.org/legal/epl-v20.html\n+ *\n+ * SPDX-License-Identifier: EPL-2.0\n+ */\n+package org.eclipse.sw360.antenna.policy.engine;\n+\n+import java.util.Collection;\n+import java.util.Iterator;\n+\n+public class TestUtils {\n+    /**\n+     * Helper for getting the element at index x in a collection\n+     *\n+     * @param data The collection from which the element should be retrieved\n+     * @param index The index of the element to be retrieved\n+     * @param <T> The data type used in the collection\n+     * @return The element found\n+     * @throws IndexOutOfBoundsException If the index is bigger than the collections size\n+     */\n+    public static <T> T getIndex(final Collection<T> data, final int index) {","path":"modules/policy/engine/src/test/java/org/eclipse/sw360/antenna/policy/engine/TestUtils.java","position":26,"original_position":26,"commit_id":"395248ebcf40de0e38288748c369dbb1d620fe55","original_commit_id":"395248ebcf40de0e38288748c369dbb1d620fe55","user":{"login":"blaumeiser-at-bosch","id":30121759,"node_id":"MDQ6VXNlcjMwMTIxNzU5","avatar_url":"https://avatars2.githubusercontent.com/u/30121759?v=4","gravatar_id":"","url":"https://api.github.com/users/blaumeiser-at-bosch","html_url":"https://github.com/blaumeiser-at-bosch","followers_url":"https://api.github.com/users/blaumeiser-at-bosch/followers","following_url":"https://api.github.com/users/blaumeiser-at-bosch/following{/other_user}","gists_url":"https://api.github.com/users/blaumeiser-at-bosch/gists{/gist_id}","starred_url":"https://api.github.com/users/blaumeiser-at-bosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaumeiser-at-bosch/subscriptions","organizations_url":"https://api.github.com/users/blaumeiser-at-bosch/orgs","repos_url":"https://api.github.com/users/blaumeiser-at-bosch/repos","events_url":"https://api.github.com/users/blaumeiser-at-bosch/events{/privacy}","received_events_url":"https://api.github.com/users/blaumeiser-at-bosch/received_events","type":"User","site_admin":false},"body":"That is right, but sometimes you need a set and the interface changes :-).\r\n\r\nIf you need it in productive code, it might make sense to use a list, but using a list, so that your tests get around this, I prefer to have the tests a bit more complicated","created_at":"2019-08-22T07:10:27Z","updated_at":"2019-08-22T07:10:27Z","html_url":"https://github.com/eclipse/antenna/pull/260#discussion_r316526132","pull_request_url":"https://api.github.com/repos/eclipse/antenna/pulls/260","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/eclipse/antenna/pulls/comments/316526132"},"html":{"href":"https://github.com/eclipse/antenna/pull/260#discussion_r316526132"},"pull_request":{"href":"https://api.github.com/repos/eclipse/antenna/pulls/260"}},"in_reply_to_id":316152345},"pull_request":{"url":"https://api.github.com/repos/eclipse/antenna/pulls/260","id":309396866,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA5Mzk2ODY2","html_url":"https://github.com/eclipse/antenna/pull/260","diff_url":"https://github.com/eclipse/antenna/pull/260.diff","patch_url":"https://github.com/eclipse/antenna/pull/260.patch","issue_url":"https://api.github.com/repos/eclipse/antenna/issues/260","number":260,"state":"open","locked":false,"title":"Antenna Binding for Policy Engine","user":{"login":"blaumeiser-at-bosch","id":30121759,"node_id":"MDQ6VXNlcjMwMTIxNzU5","avatar_url":"https://avatars2.githubusercontent.com/u/30121759?v=4","gravatar_id":"","url":"https://api.github.com/users/blaumeiser-at-bosch","html_url":"https://github.com/blaumeiser-at-bosch","followers_url":"https://api.github.com/users/blaumeiser-at-bosch/followers","following_url":"https://api.github.com/users/blaumeiser-at-bosch/following{/other_user}","gists_url":"https://api.github.com/users/blaumeiser-at-bosch/gists{/gist_id}","starred_url":"https://api.github.com/users/blaumeiser-at-bosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaumeiser-at-bosch/subscriptions","organizations_url":"https://api.github.com/users/blaumeiser-at-bosch/orgs","repos_url":"https://api.github.com/users/blaumeiser-at-bosch/repos","events_url":"https://api.github.com/users/blaumeiser-at-bosch/events{/privacy}","received_events_url":"https://api.github.com/users/blaumeiser-at-bosch/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-08-21T09:04:54Z","updated_at":"2019-08-22T07:10:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9480b8576865a2e96cef38753c3b131554ab592f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"sschuberth","id":349154,"node_id":"MDQ6VXNlcjM0OTE1NA==","avatar_url":"https://avatars0.githubusercontent.com/u/349154?v=4","gravatar_id":"","url":"https://api.github.com/users/sschuberth","html_url":"https://github.com/sschuberth","followers_url":"https://api.github.com/users/sschuberth/followers","following_url":"https://api.github.com/users/sschuberth/following{/other_user}","gists_url":"https://api.github.com/users/sschuberth/gists{/gist_id}","starred_url":"https://api.github.com/users/sschuberth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sschuberth/subscriptions","organizations_url":"https://api.github.com/users/sschuberth/orgs","repos_url":"https://api.github.com/users/sschuberth/repos","events_url":"https://api.github.com/users/sschuberth/events{/privacy}","received_events_url":"https://api.github.com/users/sschuberth/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1117885521,"node_id":"MDU6TGFiZWwxMTE3ODg1NTIx","url":"https://api.github.com/repos/eclipse/antenna/labels/WIP","name":"WIP","color":"999999","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/eclipse/antenna/pulls/260/commits","review_comments_url":"https://api.github.com/repos/eclipse/antenna/pulls/260/comments","review_comment_url":"https://api.github.com/repos/eclipse/antenna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/antenna/issues/260/comments","statuses_url":"https://api.github.com/repos/eclipse/antenna/statuses/395248ebcf40de0e38288748c369dbb1d620fe55","head":{"label":"bsinno:bab/pe_antenna_binding","ref":"bab/pe_antenna_binding","sha":"395248ebcf40de0e38288748c369dbb1d620fe55","user":{"login":"bsinno","id":9215699,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkyMTU2OTk=","avatar_url":"https://avatars3.githubusercontent.com/u/9215699?v=4","gravatar_id":"","url":"https://api.github.com/users/bsinno","html_url":"https://github.com/bsinno","followers_url":"https://api.github.com/users/bsinno/followers","following_url":"https://api.github.com/users/bsinno/following{/other_user}","gists_url":"https://api.github.com/users/bsinno/gists{/gist_id}","starred_url":"https://api.github.com/users/bsinno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsinno/subscriptions","organizations_url":"https://api.github.com/users/bsinno/orgs","repos_url":"https://api.github.com/users/bsinno/repos","events_url":"https://api.github.com/users/bsinno/events{/privacy}","received_events_url":"https://api.github.com/users/bsinno/received_events","type":"Organization","site_admin":false},"repo":{"id":149096986,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkwOTY5ODY=","name":"antenna","full_name":"bsinno/antenna","private":false,"owner":{"login":"bsinno","id":9215699,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkyMTU2OTk=","avatar_url":"https://avatars3.githubusercontent.com/u/9215699?v=4","gravatar_id":"","url":"https://api.github.com/users/bsinno","html_url":"https://github.com/bsinno","followers_url":"https://api.github.com/users/bsinno/followers","following_url":"https://api.github.com/users/bsinno/following{/other_user}","gists_url":"https://api.github.com/users/bsinno/gists{/gist_id}","starred_url":"https://api.github.com/users/bsinno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsinno/subscriptions","organizations_url":"https://api.github.com/users/bsinno/orgs","repos_url":"https://api.github.com/users/bsinno/repos","events_url":"https://api.github.com/users/bsinno/events{/privacy}","received_events_url":"https://api.github.com/users/bsinno/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bsinno/antenna","description":"SW360 Antenna project","fork":true,"url":"https://api.github.com/repos/bsinno/antenna","forks_url":"https://api.github.com/repos/bsinno/antenna/forks","keys_url":"https://api.github.com/repos/bsinno/antenna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bsinno/antenna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bsinno/antenna/teams","hooks_url":"https://api.github.com/repos/bsinno/antenna/hooks","issue_events_url":"https://api.github.com/repos/bsinno/antenna/issues/events{/number}","events_url":"https://api.github.com/repos/bsinno/antenna/events","assignees_url":"https://api.github.com/repos/bsinno/antenna/assignees{/user}","branches_url":"https://api.github.com/repos/bsinno/antenna/branches{/branch}","tags_url":"https://api.github.com/repos/bsinno/antenna/tags","blobs_url":"https://api.github.com/repos/bsinno/antenna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bsinno/antenna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bsinno/antenna/git/refs{/sha}","trees_url":"https://api.github.com/repos/bsinno/antenna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bsinno/antenna/statuses/{sha}","languages_url":"https://api.github.com/repos/bsinno/antenna/languages","stargazers_url":"https://api.github.com/repos/bsinno/antenna/stargazers","contributors_url":"https://api.github.com/repos/bsinno/antenna/contributors","subscribers_url":"https://api.github.com/repos/bsinno/antenna/subscribers","subscription_url":"https://api.github.com/repos/bsinno/antenna/subscription","commits_url":"https://api.github.com/repos/bsinno/antenna/commits{/sha}","git_commits_url":"https://api.github.com/repos/bsinno/antenna/git/commits{/sha}","comments_url":"https://api.github.com/repos/bsinno/antenna/comments{/number}","issue_comment_url":"https://api.github.com/repos/bsinno/antenna/issues/comments{/number}","contents_url":"https://api.github.com/repos/bsinno/antenna/contents/{+path}","compare_url":"https://api.github.com/repos/bsinno/antenna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bsinno/antenna/merges","archive_url":"https://api.github.com/repos/bsinno/antenna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bsinno/antenna/downloads","issues_url":"https://api.github.com/repos/bsinno/antenna/issues{/number}","pulls_url":"https://api.github.com/repos/bsinno/antenna/pulls{/number}","milestones_url":"https://api.github.com/repos/bsinno/antenna/milestones{/number}","notifications_url":"https://api.github.com/repos/bsinno/antenna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bsinno/antenna/labels{/name}","releases_url":"https://api.github.com/repos/bsinno/antenna/releases{/id}","deployments_url":"https://api.github.com/repos/bsinno/antenna/deployments","created_at":"2018-09-17T08:57:52Z","updated_at":"2019-08-21T10:07:31Z","pushed_at":"2019-08-22T06:53:55Z","git_url":"git://github.com/bsinno/antenna.git","ssh_url":"git@github.com:bsinno/antenna.git","clone_url":"https://github.com/bsinno/antenna.git","svn_url":"https://github.com/bsinno/antenna","homepage":null,"size":2899,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"eclipse:master","ref":"master","sha":"a2f5e9415cd380656c886847690372b988fb43cf","user":{"login":"eclipse","id":56974,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2OTc0","avatar_url":"https://avatars1.githubusercontent.com/u/56974?v=4","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":140017338,"node_id":"MDEwOlJlcG9zaXRvcnkxNDAwMTczMzg=","name":"antenna","full_name":"eclipse/antenna","private":false,"owner":{"login":"eclipse","id":56974,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2OTc0","avatar_url":"https://avatars1.githubusercontent.com/u/56974?v=4","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/eclipse/antenna","description":"SW360 Antenna project","fork":false,"url":"https://api.github.com/repos/eclipse/antenna","forks_url":"https://api.github.com/repos/eclipse/antenna/forks","keys_url":"https://api.github.com/repos/eclipse/antenna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/antenna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/antenna/teams","hooks_url":"https://api.github.com/repos/eclipse/antenna/hooks","issue_events_url":"https://api.github.com/repos/eclipse/antenna/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/antenna/events","assignees_url":"https://api.github.com/repos/eclipse/antenna/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/antenna/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/antenna/tags","blobs_url":"https://api.github.com/repos/eclipse/antenna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/antenna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/antenna/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/antenna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/antenna/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/antenna/languages","stargazers_url":"https://api.github.com/repos/eclipse/antenna/stargazers","contributors_url":"https://api.github.com/repos/eclipse/antenna/contributors","subscribers_url":"https://api.github.com/repos/eclipse/antenna/subscribers","subscription_url":"https://api.github.com/repos/eclipse/antenna/subscription","commits_url":"https://api.github.com/repos/eclipse/antenna/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/antenna/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/antenna/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/antenna/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/antenna/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/antenna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/antenna/merges","archive_url":"https://api.github.com/repos/eclipse/antenna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/antenna/downloads","issues_url":"https://api.github.com/repos/eclipse/antenna/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/antenna/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/antenna/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/antenna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/antenna/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/antenna/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/antenna/deployments","created_at":"2018-07-06T18:17:28Z","updated_at":"2019-08-21T19:30:31Z","pushed_at":"2019-08-22T06:55:22Z","git_url":"git://github.com/eclipse/antenna.git","ssh_url":"git@github.com:eclipse/antenna.git","clone_url":"https://github.com/eclipse/antenna.git","svn_url":"https://github.com/eclipse/antenna","homepage":null,"size":2026,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":15,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":7,"open_issues":15,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/antenna/pulls/260"},"html":{"href":"https://github.com/eclipse/antenna/pull/260"},"issue":{"href":"https://api.github.com/repos/eclipse/antenna/issues/260"},"comments":{"href":"https://api.github.com/repos/eclipse/antenna/issues/260/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/antenna/pulls/260/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/antenna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/antenna/pulls/260/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/antenna/statuses/395248ebcf40de0e38288748c369dbb1d620fe55"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"blaumeiser-at-bosch"}}