{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/warnings-plugin/pulls/comments/195019620","pull_request_review_id":128298487,"id":195019620,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTAxOTYyMA==","diff_hunk":"@@ -86,6 +89,145 @@ private HtmlPage getWebPage(final AnalysisResult result) {\n         }\n     }\n \n+    /**\n+     * Sets the health threshold less then the unhealthy threshold and parse a file that contains warnings. The\n+     * healthReport should be null / empty because the healthReportDescriptor is not enabled with this setup\n+     */\n+    @Test\n+    public void shouldCreateEmptyHealthReportForBoundaryMismatch() {\n+        HealthReport report = createHealthReportTestSetupEclipse(5, 2);\n+        assertThat(report).isNull();\n+    }\n+\n+    /**\n+     * Sets the health threshold equals to the unhealthy threshold and parse a file that contains warnings. The\n+     * healthReport should be null / empty because the healthReportDescriptor is not enabled with this setup\n+     */\n+    @Test\n+    public void shouldCreateEmptyHealthReportForEqualBoundaries() {\n+        HealthReport report = createHealthReportTestSetupEclipse(15, 15);\n+        assertThat(report).isNull();\n+    }\n+\n+    /**\n+     * Should create a health report with icon health-80plus (sun).\n+     */\n+    @Test\n+    public void shouldCreate80plusHealthReport() {\n+        HealthReport report = createHealthReportTestSetupEclipse(10, 15);\n+        assertThat(report.getDescription()).isEqualTo(\"Static Analysis: 8 warnings found.\");\n+        assertThat(report.getIconClassName()).isEqualTo(\"icon-health-80plus\");\n+    }","path":"src/test/java/io/jenkins/plugins/analysis/warnings/IssuesRecorderITest.java","position":70,"original_position":70,"commit_id":"5425129fc145bf9c3819590e2a6bc30d8798fed9","original_commit_id":"5425129fc145bf9c3819590e2a6bc30d8798fed9","user":{"login":"uhafner","id":503338,"node_id":"MDQ6VXNlcjUwMzMzOA==","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":"Noch schöner wäre natürlich eine Custom Assertion:\r\n```\r\nassertThat(report).hasDescription(\"Static Analysis: 8 warnings found.\");\r\nassertThat(report).hasHealth(H80_PLUS);\r\n```\r\nAber das können Sie so lassen, auf die aktuelle Umsetzung gibt es auch so die volle Punktzahl.","created_at":"2018-06-13T09:45:02Z","updated_at":"2018-06-13T09:46:32Z","html_url":"https://github.com/jenkinsci/warnings-plugin/pull/123#discussion_r195019620","pull_request_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/pulls/123","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/warnings-plugin/pulls/comments/195019620"},"html":{"href":"https://github.com/jenkinsci/warnings-plugin/pull/123#discussion_r195019620"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/warnings-plugin/pulls/123"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/warnings-plugin/pulls/123","id":188366874,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg4MzY2ODc0","html_url":"https://github.com/jenkinsci/warnings-plugin/pull/123","diff_url":"https://github.com/jenkinsci/warnings-plugin/pull/123.diff","patch_url":"https://github.com/jenkinsci/warnings-plugin/pull/123.patch","issue_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/issues/123","number":123,"state":"open","locked":false,"title":"[JENKINS-50092] Integration Test for Health Report ","user":{"login":"loelala","id":11573214,"node_id":"MDQ6VXNlcjExNTczMjE0","avatar_url":"https://avatars1.githubusercontent.com/u/11573214?v=4","gravatar_id":"","url":"https://api.github.com/users/loelala","html_url":"https://github.com/loelala","followers_url":"https://api.github.com/users/loelala/followers","following_url":"https://api.github.com/users/loelala/following{/other_user}","gists_url":"https://api.github.com/users/loelala/gists{/gist_id}","starred_url":"https://api.github.com/users/loelala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loelala/subscriptions","organizations_url":"https://api.github.com/users/loelala/orgs","repos_url":"https://api.github.com/users/loelala/repos","events_url":"https://api.github.com/users/loelala/events{/privacy}","received_events_url":"https://api.github.com/users/loelala/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-16T09:14:46Z","updated_at":"2018-06-13T09:46:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4cb5eee110a93c0c183999815f8dac61391426a3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/pulls/123/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/pulls/123/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/issues/123/comments","statuses_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/statuses/5425129fc145bf9c3819590e2a6bc30d8798fed9","head":{"label":"loelala:hm-edu-testing","ref":"hm-edu-testing","sha":"5425129fc145bf9c3819590e2a6bc30d8798fed9","user":{"login":"loelala","id":11573214,"node_id":"MDQ6VXNlcjExNTczMjE0","avatar_url":"https://avatars1.githubusercontent.com/u/11573214?v=4","gravatar_id":"","url":"https://api.github.com/users/loelala","html_url":"https://github.com/loelala","followers_url":"https://api.github.com/users/loelala/followers","following_url":"https://api.github.com/users/loelala/following{/other_user}","gists_url":"https://api.github.com/users/loelala/gists{/gist_id}","starred_url":"https://api.github.com/users/loelala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loelala/subscriptions","organizations_url":"https://api.github.com/users/loelala/orgs","repos_url":"https://api.github.com/users/loelala/repos","events_url":"https://api.github.com/users/loelala/events{/privacy}","received_events_url":"https://api.github.com/users/loelala/received_events","type":"User","site_admin":false},"repo":{"id":130221453,"node_id":"MDEwOlJlcG9zaXRvcnkxMzAyMjE0NTM=","name":"warnings-plugin","full_name":"loelala/warnings-plugin","owner":{"login":"loelala","id":11573214,"node_id":"MDQ6VXNlcjExNTczMjE0","avatar_url":"https://avatars1.githubusercontent.com/u/11573214?v=4","gravatar_id":"","url":"https://api.github.com/users/loelala","html_url":"https://github.com/loelala","followers_url":"https://api.github.com/users/loelala/followers","following_url":"https://api.github.com/users/loelala/following{/other_user}","gists_url":"https://api.github.com/users/loelala/gists{/gist_id}","starred_url":"https://api.github.com/users/loelala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loelala/subscriptions","organizations_url":"https://api.github.com/users/loelala/orgs","repos_url":"https://api.github.com/users/loelala/repos","events_url":"https://api.github.com/users/loelala/events{/privacy}","received_events_url":"https://api.github.com/users/loelala/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/loelala/warnings-plugin","description":"Jenkins warnings plugin","fork":true,"url":"https://api.github.com/repos/loelala/warnings-plugin","forks_url":"https://api.github.com/repos/loelala/warnings-plugin/forks","keys_url":"https://api.github.com/repos/loelala/warnings-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loelala/warnings-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loelala/warnings-plugin/teams","hooks_url":"https://api.github.com/repos/loelala/warnings-plugin/hooks","issue_events_url":"https://api.github.com/repos/loelala/warnings-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/loelala/warnings-plugin/events","assignees_url":"https://api.github.com/repos/loelala/warnings-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/loelala/warnings-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/loelala/warnings-plugin/tags","blobs_url":"https://api.github.com/repos/loelala/warnings-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loelala/warnings-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loelala/warnings-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/loelala/warnings-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loelala/warnings-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/loelala/warnings-plugin/languages","stargazers_url":"https://api.github.com/repos/loelala/warnings-plugin/stargazers","contributors_url":"https://api.github.com/repos/loelala/warnings-plugin/contributors","subscribers_url":"https://api.github.com/repos/loelala/warnings-plugin/subscribers","subscription_url":"https://api.github.com/repos/loelala/warnings-plugin/subscription","commits_url":"https://api.github.com/repos/loelala/warnings-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/loelala/warnings-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/loelala/warnings-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/loelala/warnings-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/loelala/warnings-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/loelala/warnings-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loelala/warnings-plugin/merges","archive_url":"https://api.github.com/repos/loelala/warnings-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loelala/warnings-plugin/downloads","issues_url":"https://api.github.com/repos/loelala/warnings-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/loelala/warnings-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/loelala/warnings-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/loelala/warnings-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loelala/warnings-plugin/labels{/name}","releases_url":"https://api.github.com/repos/loelala/warnings-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/loelala/warnings-plugin/deployments","created_at":"2018-04-19T13:41:21Z","updated_at":"2018-04-19T13:41:24Z","pushed_at":"2018-05-17T13:24:44Z","git_url":"git://github.com/loelala/warnings-plugin.git","ssh_url":"git@github.com:loelala/warnings-plugin.git","clone_url":"https://github.com/loelala/warnings-plugin.git","svn_url":"https://github.com/loelala/warnings-plugin","homepage":"http://jenkins-ci.org/","size":5812,"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,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jenkinsci:hm-edu-testing","ref":"hm-edu-testing","sha":"02de0bdfe1de99781ef0e0ed9fdb8d30151289b3","user":{"login":"jenkinsci","id":107424,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNzQyNA==","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":1169230,"node_id":"MDEwOlJlcG9zaXRvcnkxMTY5MjMw","name":"warnings-plugin","full_name":"jenkinsci/warnings-plugin","owner":{"login":"jenkinsci","id":107424,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNzQyNA==","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/warnings-plugin","description":"Jenkins warnings plugin","fork":false,"url":"https://api.github.com/repos/jenkinsci/warnings-plugin","forks_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/warnings-plugin/deployments","created_at":"2010-12-14T20:42:03Z","updated_at":"2018-06-07T21:11:58Z","pushed_at":"2018-06-12T21:47:14Z","git_url":"git://github.com/jenkinsci/warnings-plugin.git","ssh_url":"git@github.com:jenkinsci/warnings-plugin.git","clone_url":"https://github.com/jenkinsci/warnings-plugin.git","svn_url":"https://github.com/jenkinsci/warnings-plugin","homepage":"http://jenkins-ci.org/","size":5954,"stargazers_count":52,"watchers_count":52,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":140,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":140,"open_issues":14,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/warnings-plugin/pulls/123"},"html":{"href":"https://github.com/jenkinsci/warnings-plugin/pull/123"},"issue":{"href":"https://api.github.com/repos/jenkinsci/warnings-plugin/issues/123"},"comments":{"href":"https://api.github.com/repos/jenkinsci/warnings-plugin/issues/123/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/warnings-plugin/pulls/123/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/warnings-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/warnings-plugin/pulls/123/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/warnings-plugin/statuses/5425129fc145bf9c3819590e2a6bc30d8798fed9"}},"author_association":"NONE"}}
{"actor":{"display_login":"uhafner"}}