{"action":"created","comment":{"url":"https://api.github.com/repos/aliok/digger-java/pulls/comments/91911394","pull_request_review_id":12419104,"id":91911394,"diff_hunk":"@@ -0,0 +1,58 @@\n+package digkins.services;\n+\n+import com.offbytwo.jenkins.JenkinsServer;\n+import com.offbytwo.jenkins.client.JenkinsHttpClient;\n+import com.offbytwo.jenkins.model.*;\n+import com.redhat.digkins.services.ArtifactsService;\n+import org.junit.Test;\n+\n+import java.io.FileInputStream;\n+import java.io.InputStream;\n+import java.util.Arrays;\n+\n+import static org.junit.Assert.assertNotNull;\n+import static org.junit.Assert.assertNull;\n+import static org.mockito.BDDMockito.given;","path":"src/test/java/digkins/services/ArtifactsServiceTests.java","position":15,"original_position":15,"commit_id":"1ca48b67f255d38dfbf6fe865c1efc4ebd67dd28","original_commit_id":"1ca48b67f255d38dfbf6fe865c1efc4ebd67dd28","user":{"login":"aliok","id":376732,"avatar_url":"https://avatars.githubusercontent.com/u/376732?v=3","gravatar_id":"","url":"https://api.github.com/users/aliok","html_url":"https://github.com/aliok","followers_url":"https://api.github.com/users/aliok/followers","following_url":"https://api.github.com/users/aliok/following{/other_user}","gists_url":"https://api.github.com/users/aliok/gists{/gist_id}","starred_url":"https://api.github.com/users/aliok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliok/subscriptions","organizations_url":"https://api.github.com/users/aliok/orgs","repos_url":"https://api.github.com/users/aliok/repos","events_url":"https://api.github.com/users/aliok/events{/privacy}","received_events_url":"https://api.github.com/users/aliok/received_events","type":"User","site_admin":false},"body":"@wtrocki I had the old TDD style used in other tests. I think we should use one approach.\r\nUnless you have strong opinions about BDD, I will convert `given` to `when`","created_at":"2016-12-12T09:36:11Z","updated_at":"2016-12-12T09:36:32Z","html_url":"https://github.com/aliok/digger-java/pull/1#discussion_r91911394","pull_request_url":"https://api.github.com/repos/aliok/digger-java/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/aliok/digger-java/pulls/comments/91911394"},"html":{"href":"https://github.com/aliok/digger-java/pull/1#discussion_r91911394"},"pull_request":{"href":"https://api.github.com/repos/aliok/digger-java/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/aliok/digger-java/pulls/1","id":97375635,"html_url":"https://github.com/aliok/digger-java/pull/1","diff_url":"https://github.com/aliok/digger-java/pull/1.diff","patch_url":"https://github.com/aliok/digger-java/pull/1.patch","issue_url":"https://api.github.com/repos/aliok/digger-java/issues/1","number":1,"state":"open","locked":false,"title":"AGDIGGER-60 - allow to stream artifacts","user":{"login":"wtrocki","id":981838,"avatar_url":"https://avatars.githubusercontent.com/u/981838?v=3","gravatar_id":"","url":"https://api.github.com/users/wtrocki","html_url":"https://github.com/wtrocki","followers_url":"https://api.github.com/users/wtrocki/followers","following_url":"https://api.github.com/users/wtrocki/following{/other_user}","gists_url":"https://api.github.com/users/wtrocki/gists{/gist_id}","starred_url":"https://api.github.com/users/wtrocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wtrocki/subscriptions","organizations_url":"https://api.github.com/users/wtrocki/orgs","repos_url":"https://api.github.com/users/wtrocki/repos","events_url":"https://api.github.com/users/wtrocki/events{/privacy}","received_events_url":"https://api.github.com/users/wtrocki/received_events","type":"User","site_admin":false},"body":"## Motivation \r\n\r\nAllow to stream jenkins artifacts by name.\r\n\r\nReview @aliok ","created_at":"2016-12-09T20:34:21Z","updated_at":"2016-12-12T09:36:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"440409881497a3d63333013723e3846c83c83859","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/aliok/digger-java/pulls/1/commits","review_comments_url":"https://api.github.com/repos/aliok/digger-java/pulls/1/comments","review_comment_url":"https://api.github.com/repos/aliok/digger-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aliok/digger-java/issues/1/comments","statuses_url":"https://api.github.com/repos/aliok/digger-java/statuses/1ca48b67f255d38dfbf6fe865c1efc4ebd67dd28","head":{"label":"wtrocki:AGDIGGER-57","ref":"AGDIGGER-57","sha":"1ca48b67f255d38dfbf6fe865c1efc4ebd67dd28","user":{"login":"wtrocki","id":981838,"avatar_url":"https://avatars.githubusercontent.com/u/981838?v=3","gravatar_id":"","url":"https://api.github.com/users/wtrocki","html_url":"https://github.com/wtrocki","followers_url":"https://api.github.com/users/wtrocki/followers","following_url":"https://api.github.com/users/wtrocki/following{/other_user}","gists_url":"https://api.github.com/users/wtrocki/gists{/gist_id}","starred_url":"https://api.github.com/users/wtrocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wtrocki/subscriptions","organizations_url":"https://api.github.com/users/wtrocki/orgs","repos_url":"https://api.github.com/users/wtrocki/repos","events_url":"https://api.github.com/users/wtrocki/events{/privacy}","received_events_url":"https://api.github.com/users/wtrocki/received_events","type":"User","site_admin":false},"repo":{"id":75749659,"name":"digger-java","full_name":"wtrocki/digger-java","owner":{"login":"wtrocki","id":981838,"avatar_url":"https://avatars.githubusercontent.com/u/981838?v=3","gravatar_id":"","url":"https://api.github.com/users/wtrocki","html_url":"https://github.com/wtrocki","followers_url":"https://api.github.com/users/wtrocki/followers","following_url":"https://api.github.com/users/wtrocki/following{/other_user}","gists_url":"https://api.github.com/users/wtrocki/gists{/gist_id}","starred_url":"https://api.github.com/users/wtrocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wtrocki/subscriptions","organizations_url":"https://api.github.com/users/wtrocki/orgs","repos_url":"https://api.github.com/users/wtrocki/repos","events_url":"https://api.github.com/users/wtrocki/events{/privacy}","received_events_url":"https://api.github.com/users/wtrocki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wtrocki/digger-java","description":"A java integration library for AeroGear Digger ","fork":true,"url":"https://api.github.com/repos/wtrocki/digger-java","forks_url":"https://api.github.com/repos/wtrocki/digger-java/forks","keys_url":"https://api.github.com/repos/wtrocki/digger-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wtrocki/digger-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wtrocki/digger-java/teams","hooks_url":"https://api.github.com/repos/wtrocki/digger-java/hooks","issue_events_url":"https://api.github.com/repos/wtrocki/digger-java/issues/events{/number}","events_url":"https://api.github.com/repos/wtrocki/digger-java/events","assignees_url":"https://api.github.com/repos/wtrocki/digger-java/assignees{/user}","branches_url":"https://api.github.com/repos/wtrocki/digger-java/branches{/branch}","tags_url":"https://api.github.com/repos/wtrocki/digger-java/tags","blobs_url":"https://api.github.com/repos/wtrocki/digger-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wtrocki/digger-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wtrocki/digger-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/wtrocki/digger-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wtrocki/digger-java/statuses/{sha}","languages_url":"https://api.github.com/repos/wtrocki/digger-java/languages","stargazers_url":"https://api.github.com/repos/wtrocki/digger-java/stargazers","contributors_url":"https://api.github.com/repos/wtrocki/digger-java/contributors","subscribers_url":"https://api.github.com/repos/wtrocki/digger-java/subscribers","subscription_url":"https://api.github.com/repos/wtrocki/digger-java/subscription","commits_url":"https://api.github.com/repos/wtrocki/digger-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/wtrocki/digger-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/wtrocki/digger-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/wtrocki/digger-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/wtrocki/digger-java/contents/{+path}","compare_url":"https://api.github.com/repos/wtrocki/digger-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wtrocki/digger-java/merges","archive_url":"https://api.github.com/repos/wtrocki/digger-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wtrocki/digger-java/downloads","issues_url":"https://api.github.com/repos/wtrocki/digger-java/issues{/number}","pulls_url":"https://api.github.com/repos/wtrocki/digger-java/pulls{/number}","milestones_url":"https://api.github.com/repos/wtrocki/digger-java/milestones{/number}","notifications_url":"https://api.github.com/repos/wtrocki/digger-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wtrocki/digger-java/labels{/name}","releases_url":"https://api.github.com/repos/wtrocki/digger-java/releases{/id}","deployments_url":"https://api.github.com/repos/wtrocki/digger-java/deployments","created_at":"2016-12-06T16:27:16Z","updated_at":"2016-11-30T19:20:16Z","pushed_at":"2016-12-10T10:24:30Z","git_url":"git://github.com/wtrocki/digger-java.git","ssh_url":"git@github.com:wtrocki/digger-java.git","clone_url":"https://github.com/wtrocki/digger-java.git","svn_url":"https://github.com/wtrocki/digger-java","homepage":null,"size":18,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"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":"aliok:AGDIGGER-59-trigger-jenkins-job","ref":"AGDIGGER-59-trigger-jenkins-job","sha":"6c2d6283eccbd3ed217715d51581a68b8b088b2c","user":{"login":"aliok","id":376732,"avatar_url":"https://avatars.githubusercontent.com/u/376732?v=3","gravatar_id":"","url":"https://api.github.com/users/aliok","html_url":"https://github.com/aliok","followers_url":"https://api.github.com/users/aliok/followers","following_url":"https://api.github.com/users/aliok/following{/other_user}","gists_url":"https://api.github.com/users/aliok/gists{/gist_id}","starred_url":"https://api.github.com/users/aliok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliok/subscriptions","organizations_url":"https://api.github.com/users/aliok/orgs","repos_url":"https://api.github.com/users/aliok/repos","events_url":"https://api.github.com/users/aliok/events{/privacy}","received_events_url":"https://api.github.com/users/aliok/received_events","type":"User","site_admin":false},"repo":{"id":75802830,"name":"digger-java","full_name":"aliok/digger-java","owner":{"login":"aliok","id":376732,"avatar_url":"https://avatars.githubusercontent.com/u/376732?v=3","gravatar_id":"","url":"https://api.github.com/users/aliok","html_url":"https://github.com/aliok","followers_url":"https://api.github.com/users/aliok/followers","following_url":"https://api.github.com/users/aliok/following{/other_user}","gists_url":"https://api.github.com/users/aliok/gists{/gist_id}","starred_url":"https://api.github.com/users/aliok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliok/subscriptions","organizations_url":"https://api.github.com/users/aliok/orgs","repos_url":"https://api.github.com/users/aliok/repos","events_url":"https://api.github.com/users/aliok/events{/privacy}","received_events_url":"https://api.github.com/users/aliok/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aliok/digger-java","description":"A java integration library for AeroGear Digger ","fork":true,"url":"https://api.github.com/repos/aliok/digger-java","forks_url":"https://api.github.com/repos/aliok/digger-java/forks","keys_url":"https://api.github.com/repos/aliok/digger-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aliok/digger-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aliok/digger-java/teams","hooks_url":"https://api.github.com/repos/aliok/digger-java/hooks","issue_events_url":"https://api.github.com/repos/aliok/digger-java/issues/events{/number}","events_url":"https://api.github.com/repos/aliok/digger-java/events","assignees_url":"https://api.github.com/repos/aliok/digger-java/assignees{/user}","branches_url":"https://api.github.com/repos/aliok/digger-java/branches{/branch}","tags_url":"https://api.github.com/repos/aliok/digger-java/tags","blobs_url":"https://api.github.com/repos/aliok/digger-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aliok/digger-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aliok/digger-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/aliok/digger-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aliok/digger-java/statuses/{sha}","languages_url":"https://api.github.com/repos/aliok/digger-java/languages","stargazers_url":"https://api.github.com/repos/aliok/digger-java/stargazers","contributors_url":"https://api.github.com/repos/aliok/digger-java/contributors","subscribers_url":"https://api.github.com/repos/aliok/digger-java/subscribers","subscription_url":"https://api.github.com/repos/aliok/digger-java/subscription","commits_url":"https://api.github.com/repos/aliok/digger-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/aliok/digger-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/aliok/digger-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/aliok/digger-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/aliok/digger-java/contents/{+path}","compare_url":"https://api.github.com/repos/aliok/digger-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aliok/digger-java/merges","archive_url":"https://api.github.com/repos/aliok/digger-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aliok/digger-java/downloads","issues_url":"https://api.github.com/repos/aliok/digger-java/issues{/number}","pulls_url":"https://api.github.com/repos/aliok/digger-java/pulls{/number}","milestones_url":"https://api.github.com/repos/aliok/digger-java/milestones{/number}","notifications_url":"https://api.github.com/repos/aliok/digger-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aliok/digger-java/labels{/name}","releases_url":"https://api.github.com/repos/aliok/digger-java/releases{/id}","deployments_url":"https://api.github.com/repos/aliok/digger-java/deployments","created_at":"2016-12-07T05:33:44Z","updated_at":"2016-12-07T05:33:47Z","pushed_at":"2016-12-12T09:16:56Z","git_url":"git://github.com/aliok/digger-java.git","ssh_url":"git@github.com:aliok/digger-java.git","clone_url":"https://github.com/aliok/digger-java.git","svn_url":"https://github.com/aliok/digger-java","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aliok/digger-java/pulls/1"},"html":{"href":"https://github.com/aliok/digger-java/pull/1"},"issue":{"href":"https://api.github.com/repos/aliok/digger-java/issues/1"},"comments":{"href":"https://api.github.com/repos/aliok/digger-java/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/aliok/digger-java/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/aliok/digger-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aliok/digger-java/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/aliok/digger-java/statuses/1ca48b67f255d38dfbf6fe865c1efc4ebd67dd28"}}}}
{"actor":{"display_login":"aliok"}}