{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/analysis-model/pulls/comments/147584655","pull_request_review_id":72109625,"id":147584655,"diff_hunk":"@@ -0,0 +1,354 @@\n+package edu.hm.hafner;\n+\n+import com.google.common.collect.ImmutableList;\n+import com.google.common.collect.ImmutableSet;\n+\n+import edu.hm.hafner.analysis.Issue;\n+import edu.hm.hafner.analysis.IssueBuilder;\n+import edu.hm.hafner.analysis.Issues;\n+import edu.hm.hafner.analysis.Priority;\n+import edu.hm.hafner.util.NoSuchElementException;\n+import jdk.nashorn.internal.ir.annotations.Ignore;\n+\n+import org.junit.jupiter.api.BeforeEach;\n+import org.junit.jupiter.api.Disabled;\n+import org.junit.jupiter.api.Test;\n+\n+import java.util.*;\n+\n+import static org.assertj.core.api.Assertions.assertThatThrownBy;\n+import static org.assertj.core.api.AssertionsForClassTypes.assertThat;\n+\n+/**\n+ * *****************************************************************\n+ * Hochschule Muenchen Fakultaet 07 (Informatik).\t\t**\n+ * Autor: Sebastian Balz\n+ * Datum 16.10.2017\n+ *  Software Win 7 JDK8 Win 10 JDK8 Ubuntu 15.4 OpenJDK7\t**\n+ * edu.hm.hafner.analysis\n+ *\n+ */\n+class IssuesTest {\n+    private Issue i1;\n+    private Issue i2;\n+    private Issue i3;\n+\n+    /**\n+     * init three Issue's befor eacht test.\n+     */\n+    @BeforeEach\n+    void initIssues() {\n+        i1 = new IssueBuilder().setPriority(Priority.HIGH).setType(\"t1\").setPackageName(\"p1\").setMessage(\"m1\").setFileName(\"f1\").build();\n+        i2 = new IssueBuilder().setPriority(Priority.LOW).setType(\"t2\").setPackageName(\"p2\").setMessage(\"m2\").setFileName(\"f2\").build();\n+        i3 = new IssueBuilder().setPriority(Priority.NORMAL).setType(\"t2\").setPackageName(\"p2\").setMessage(\"m2\").setFileName(\"f3\").build();\n+    }\n+\n+    /**\n+     * generate a default Issues collection with three issues.\n+     */\n+    private Issues getDefaultIssues() {\n+        Issues i = new Issues();\n+        ArrayList<Issue> l = new ArrayList<>();\n+        l.add(i1);\n+        l.add(i2);\n+        l.add(i3);\n+        i.addAll(l);\n+        return i;\n+    }\n+\n+    /**\n+     * add two issue's with Normal Prio.\n+     */\n+    @Test\n+    void addTwoNormalPrioIsues() {\n+        i1 = new IssueBuilder().setPriority(Priority.NORMAL).setType(\"t1\").setPackageName(\"p1\").setMessage(\"m1\").setFileName(\"f1\").build();","path":"src/test/java/edu/hm/hafner/IssuesTest.java","position":64,"original_position":64,"commit_id":"66519b6c8e1d50a38321c09411dffd8ef0c26ecc","original_commit_id":"66519b6c8e1d50a38321c09411dffd8ef0c26ecc","user":{"login":"uhafner","id":503338,"avatar_url":"https://avatars2.githubusercontent.com/u/503338?v=4","gravatar_id":"","url":"https://api.github.com/users/uhafner","html_url":"https://github.com/uhafner","followers_url":"https://api.github.com/users/uhafner/followers","following_url":"https://api.github.com/users/uhafner/following{/other_user}","gists_url":"https://api.github.com/users/uhafner/gists{/gist_id}","starred_url":"https://api.github.com/users/uhafner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uhafner/subscriptions","organizations_url":"https://api.github.com/users/uhafner/orgs","repos_url":"https://api.github.com/users/uhafner/repos","events_url":"https://api.github.com/users/uhafner/events{/privacy}","received_events_url":"https://api.github.com/users/uhafner/received_events","type":"User","site_admin":false},"body":"Überschreibt field, gewollt?","created_at":"2017-10-29T15:25:29Z","updated_at":"2017-10-29T15:42:45Z","html_url":"https://github.com/jenkinsci/analysis-model/pull/4#discussion_r147584655","pull_request_url":"https://api.github.com/repos/jenkinsci/analysis-model/pulls/4","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/analysis-model/pulls/comments/147584655"},"html":{"href":"https://github.com/jenkinsci/analysis-model/pull/4#discussion_r147584655"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/analysis-model/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/analysis-model/pulls/4","id":148590659,"html_url":"https://github.com/jenkinsci/analysis-model/pull/4","diff_url":"https://github.com/jenkinsci/analysis-model/pull/4.diff","patch_url":"https://github.com/jenkinsci/analysis-model/pull/4.patch","issue_url":"https://api.github.com/repos/jenkinsci/analysis-model/issues/4","number":4,"state":"open","locked":false,"title":"Testing : Testen mit objektorientierten Sprachen  Balz","user":{"login":"diridari","id":22620537,"avatar_url":"https://avatars2.githubusercontent.com/u/22620537?v=4","gravatar_id":"","url":"https://api.github.com/users/diridari","html_url":"https://github.com/diridari","followers_url":"https://api.github.com/users/diridari/followers","following_url":"https://api.github.com/users/diridari/following{/other_user}","gists_url":"https://api.github.com/users/diridari/gists{/gist_id}","starred_url":"https://api.github.com/users/diridari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diridari/subscriptions","organizations_url":"https://api.github.com/users/diridari/orgs","repos_url":"https://api.github.com/users/diridari/repos","events_url":"https://api.github.com/users/diridari/events{/privacy}","received_events_url":"https://api.github.com/users/diridari/received_events","type":"User","site_admin":false},"body":"Write test for:\r\n- issue\r\n- issues\r\n- issueBuilder\r\nand fix some failures\r\n possible Failure Add the same element twice : Test disabled because other test fails if issues.add is changed.\r\nIssues:\r\n \r\n  Remove element does not reduce number of issue\r\nIssuer: \r\n  getLineEnd","created_at":"2017-10-25T07:35:05Z","updated_at":"2017-10-29T15:42:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ffd905127861f048817e51d41095530594dd15f1","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/analysis-model/pulls/4/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/analysis-model/pulls/4/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/analysis-model/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/analysis-model/issues/4/comments","statuses_url":"https://api.github.com/repos/jenkinsci/analysis-model/statuses/66519b6c8e1d50a38321c09411dffd8ef0c26ecc","head":{"label":"diridari:AssertJ","ref":"AssertJ","sha":"66519b6c8e1d50a38321c09411dffd8ef0c26ecc","user":{"login":"diridari","id":22620537,"avatar_url":"https://avatars2.githubusercontent.com/u/22620537?v=4","gravatar_id":"","url":"https://api.github.com/users/diridari","html_url":"https://github.com/diridari","followers_url":"https://api.github.com/users/diridari/followers","following_url":"https://api.github.com/users/diridari/following{/other_user}","gists_url":"https://api.github.com/users/diridari/gists{/gist_id}","starred_url":"https://api.github.com/users/diridari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diridari/subscriptions","organizations_url":"https://api.github.com/users/diridari/orgs","repos_url":"https://api.github.com/users/diridari/repos","events_url":"https://api.github.com/users/diridari/events{/privacy}","received_events_url":"https://api.github.com/users/diridari/received_events","type":"User","site_admin":false},"repo":{"id":106691997,"name":"analysis-model","full_name":"diridari/analysis-model","owner":{"login":"diridari","id":22620537,"avatar_url":"https://avatars2.githubusercontent.com/u/22620537?v=4","gravatar_id":"","url":"https://api.github.com/users/diridari","html_url":"https://github.com/diridari","followers_url":"https://api.github.com/users/diridari/followers","following_url":"https://api.github.com/users/diridari/following{/other_user}","gists_url":"https://api.github.com/users/diridari/gists{/gist_id}","starred_url":"https://api.github.com/users/diridari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diridari/subscriptions","organizations_url":"https://api.github.com/users/diridari/orgs","repos_url":"https://api.github.com/users/diridari/repos","events_url":"https://api.github.com/users/diridari/events{/privacy}","received_events_url":"https://api.github.com/users/diridari/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/diridari/analysis-model","description":"A library to read static analysis reports into a Java object model","fork":true,"url":"https://api.github.com/repos/diridari/analysis-model","forks_url":"https://api.github.com/repos/diridari/analysis-model/forks","keys_url":"https://api.github.com/repos/diridari/analysis-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diridari/analysis-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diridari/analysis-model/teams","hooks_url":"https://api.github.com/repos/diridari/analysis-model/hooks","issue_events_url":"https://api.github.com/repos/diridari/analysis-model/issues/events{/number}","events_url":"https://api.github.com/repos/diridari/analysis-model/events","assignees_url":"https://api.github.com/repos/diridari/analysis-model/assignees{/user}","branches_url":"https://api.github.com/repos/diridari/analysis-model/branches{/branch}","tags_url":"https://api.github.com/repos/diridari/analysis-model/tags","blobs_url":"https://api.github.com/repos/diridari/analysis-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diridari/analysis-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diridari/analysis-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/diridari/analysis-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diridari/analysis-model/statuses/{sha}","languages_url":"https://api.github.com/repos/diridari/analysis-model/languages","stargazers_url":"https://api.github.com/repos/diridari/analysis-model/stargazers","contributors_url":"https://api.github.com/repos/diridari/analysis-model/contributors","subscribers_url":"https://api.github.com/repos/diridari/analysis-model/subscribers","subscription_url":"https://api.github.com/repos/diridari/analysis-model/subscription","commits_url":"https://api.github.com/repos/diridari/analysis-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/diridari/analysis-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/diridari/analysis-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/diridari/analysis-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/diridari/analysis-model/contents/{+path}","compare_url":"https://api.github.com/repos/diridari/analysis-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diridari/analysis-model/merges","archive_url":"https://api.github.com/repos/diridari/analysis-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diridari/analysis-model/downloads","issues_url":"https://api.github.com/repos/diridari/analysis-model/issues{/number}","pulls_url":"https://api.github.com/repos/diridari/analysis-model/pulls{/number}","milestones_url":"https://api.github.com/repos/diridari/analysis-model/milestones{/number}","notifications_url":"https://api.github.com/repos/diridari/analysis-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diridari/analysis-model/labels{/name}","releases_url":"https://api.github.com/repos/diridari/analysis-model/releases{/id}","deployments_url":"https://api.github.com/repos/diridari/analysis-model/deployments","created_at":"2017-10-12T12:48:40Z","updated_at":"2017-10-12T12:48:42Z","pushed_at":"2017-10-26T14:42:06Z","git_url":"git://github.com/diridari/analysis-model.git","ssh_url":"git@github.com:diridari/analysis-model.git","clone_url":"https://github.com/diridari/analysis-model.git","svn_url":"https://github.com/diridari/analysis-model","homepage":"","size":5688,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jenkinsci:master","ref":"master","sha":"9509bff7fed2115536cf94bdb414c56a71958fea","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars0.githubusercontent.com/u/107424?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":24608251,"name":"analysis-model","full_name":"jenkinsci/analysis-model","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars0.githubusercontent.com/u/107424?v=4","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/analysis-model","description":"A library to read static analysis reports into a Java object model","fork":true,"url":"https://api.github.com/repos/jenkinsci/analysis-model","forks_url":"https://api.github.com/repos/jenkinsci/analysis-model/forks","keys_url":"https://api.github.com/repos/jenkinsci/analysis-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/analysis-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/analysis-model/teams","hooks_url":"https://api.github.com/repos/jenkinsci/analysis-model/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/analysis-model/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/analysis-model/events","assignees_url":"https://api.github.com/repos/jenkinsci/analysis-model/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/analysis-model/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/analysis-model/tags","blobs_url":"https://api.github.com/repos/jenkinsci/analysis-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/analysis-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/analysis-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/analysis-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/analysis-model/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/analysis-model/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/analysis-model/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/analysis-model/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/analysis-model/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/analysis-model/subscription","commits_url":"https://api.github.com/repos/jenkinsci/analysis-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/analysis-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/analysis-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/analysis-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/analysis-model/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/analysis-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/analysis-model/merges","archive_url":"https://api.github.com/repos/jenkinsci/analysis-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/analysis-model/downloads","issues_url":"https://api.github.com/repos/jenkinsci/analysis-model/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/analysis-model/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/analysis-model/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/analysis-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/analysis-model/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/analysis-model/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/analysis-model/deployments","created_at":"2014-09-29T18:48:31Z","updated_at":"2017-10-01T15:24:47Z","pushed_at":"2017-10-29T13:45:57Z","git_url":"git://github.com/jenkinsci/analysis-model.git","ssh_url":"git@github.com:jenkinsci/analysis-model.git","clone_url":"https://github.com/jenkinsci/analysis-model.git","svn_url":"https://github.com/jenkinsci/analysis-model","homepage":"","size":5669,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":10,"forks":13,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/analysis-model/pulls/4"},"html":{"href":"https://github.com/jenkinsci/analysis-model/pull/4"},"issue":{"href":"https://api.github.com/repos/jenkinsci/analysis-model/issues/4"},"comments":{"href":"https://api.github.com/repos/jenkinsci/analysis-model/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/analysis-model/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/analysis-model/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/analysis-model/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/analysis-model/statuses/66519b6c8e1d50a38321c09411dffd8ef0c26ecc"}},"author_association":"NONE"}}
{"actor":{"display_login":"uhafner"}}