{"action":"created","comment":{"url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/pulls/comments/49830354","id":49830354,"diff_hunk":"@@ -0,0 +1,57 @@\n+package com.clouway.download.agent;\n+\n+import org.junit.Test;\n+\n+import java.io.ByteArrayOutputStream;\n+import java.io.PrintStream;\n+\n+import static org.hamcrest.MatcherAssert.assertThat;\n+import static org.hamcrest.core.Is.is;\n+\n+/**\n+ * @author Krasimir Raikov(raikov.krasimir@gmail.com)\n+ */\n+public class ProgressBarTest {\n+\n+    @Test\n+    public void successfulPrinting() {\n+        ProgressBarImplementation progressBar = new ProgressBarImplementation();","path":"test/com/clouway/download/agent/ProgressBarTest.java","position":18,"original_position":18,"commit_id":"11c75d4d37da574f14721ae2b11503d4e100e371","original_commit_id":"11c75d4d37da574f14721ae2b11503d4e100e371","user":{"login":"KrasimirRaikov","id":13517204,"avatar_url":"https://avatars.githubusercontent.com/u/13517204?v=3","gravatar_id":"","url":"https://api.github.com/users/KrasimirRaikov","html_url":"https://github.com/KrasimirRaikov","followers_url":"https://api.github.com/users/KrasimirRaikov/followers","following_url":"https://api.github.com/users/KrasimirRaikov/following{/other_user}","gists_url":"https://api.github.com/users/KrasimirRaikov/gists{/gist_id}","starred_url":"https://api.github.com/users/KrasimirRaikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrasimirRaikov/subscriptions","organizations_url":"https://api.github.com/users/KrasimirRaikov/orgs","repos_url":"https://api.github.com/users/KrasimirRaikov/repos","events_url":"https://api.github.com/users/KrasimirRaikov/events{/privacy}","received_events_url":"https://api.github.com/users/KrasimirRaikov/received_events","type":"User","site_admin":false},"body":"I could name it ProgressBarTerminalPrinter since it does only that.","created_at":"2016-01-15T08:34:30Z","updated_at":"2016-01-15T08:34:30Z","html_url":"https://github.com/clouway-incubator/networking-and-gui/pull/8#discussion_r49830354","pull_request_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/networking-and-gui/pulls/comments/49830354"},"html":{"href":"https://github.com/clouway-incubator/networking-and-gui/pull/8#discussion_r49830354"},"pull_request":{"href":"https://api.github.com/repos/clouway-incubator/networking-and-gui/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/pulls/8","id":55862763,"html_url":"https://github.com/clouway-incubator/networking-and-gui/pull/8","diff_url":"https://github.com/clouway-incubator/networking-and-gui/pull/8.diff","patch_url":"https://github.com/clouway-incubator/networking-and-gui/pull/8.patch","issue_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/issues/8","number":8,"state":"open","locked":false,"title":"First task DownloadAgent","user":{"login":"KrasimirRaikov","id":13517204,"avatar_url":"https://avatars.githubusercontent.com/u/13517204?v=3","gravatar_id":"","url":"https://api.github.com/users/KrasimirRaikov","html_url":"https://github.com/KrasimirRaikov","followers_url":"https://api.github.com/users/KrasimirRaikov/followers","following_url":"https://api.github.com/users/KrasimirRaikov/following{/other_user}","gists_url":"https://api.github.com/users/KrasimirRaikov/gists{/gist_id}","starred_url":"https://api.github.com/users/KrasimirRaikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrasimirRaikov/subscriptions","organizations_url":"https://api.github.com/users/KrasimirRaikov/orgs","repos_url":"https://api.github.com/users/KrasimirRaikov/repos","events_url":"https://api.github.com/users/KrasimirRaikov/events{/privacy}","received_events_url":"https://api.github.com/users/KrasimirRaikov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-13T07:27:42Z","updated_at":"2016-01-15T08:34:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5dd7031b41cecabd828a3694d966f7663fcd9279","assignee":{"login":"mgenov","id":209223,"avatar_url":"https://avatars.githubusercontent.com/u/209223?v=3","gravatar_id":"","url":"https://api.github.com/users/mgenov","html_url":"https://github.com/mgenov","followers_url":"https://api.github.com/users/mgenov/followers","following_url":"https://api.github.com/users/mgenov/following{/other_user}","gists_url":"https://api.github.com/users/mgenov/gists{/gist_id}","starred_url":"https://api.github.com/users/mgenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgenov/subscriptions","organizations_url":"https://api.github.com/users/mgenov/orgs","repos_url":"https://api.github.com/users/mgenov/repos","events_url":"https://api.github.com/users/mgenov/events{/privacy}","received_events_url":"https://api.github.com/users/mgenov/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/pulls/8/commits","review_comments_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/pulls/8/comments","review_comment_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/issues/8/comments","statuses_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/statuses/11c75d4d37da574f14721ae2b11503d4e100e371","head":{"label":"KrasimirRaikov:master","ref":"master","sha":"11c75d4d37da574f14721ae2b11503d4e100e371","user":{"login":"KrasimirRaikov","id":13517204,"avatar_url":"https://avatars.githubusercontent.com/u/13517204?v=3","gravatar_id":"","url":"https://api.github.com/users/KrasimirRaikov","html_url":"https://github.com/KrasimirRaikov","followers_url":"https://api.github.com/users/KrasimirRaikov/followers","following_url":"https://api.github.com/users/KrasimirRaikov/following{/other_user}","gists_url":"https://api.github.com/users/KrasimirRaikov/gists{/gist_id}","starred_url":"https://api.github.com/users/KrasimirRaikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrasimirRaikov/subscriptions","organizations_url":"https://api.github.com/users/KrasimirRaikov/orgs","repos_url":"https://api.github.com/users/KrasimirRaikov/repos","events_url":"https://api.github.com/users/KrasimirRaikov/events{/privacy}","received_events_url":"https://api.github.com/users/KrasimirRaikov/received_events","type":"User","site_admin":false},"repo":{"id":49125764,"name":"networking-and-gui","full_name":"KrasimirRaikov/networking-and-gui","owner":{"login":"KrasimirRaikov","id":13517204,"avatar_url":"https://avatars.githubusercontent.com/u/13517204?v=3","gravatar_id":"","url":"https://api.github.com/users/KrasimirRaikov","html_url":"https://github.com/KrasimirRaikov","followers_url":"https://api.github.com/users/KrasimirRaikov/followers","following_url":"https://api.github.com/users/KrasimirRaikov/following{/other_user}","gists_url":"https://api.github.com/users/KrasimirRaikov/gists{/gist_id}","starred_url":"https://api.github.com/users/KrasimirRaikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrasimirRaikov/subscriptions","organizations_url":"https://api.github.com/users/KrasimirRaikov/orgs","repos_url":"https://api.github.com/users/KrasimirRaikov/repos","events_url":"https://api.github.com/users/KrasimirRaikov/events{/privacy}","received_events_url":"https://api.github.com/users/KrasimirRaikov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KrasimirRaikov/networking-and-gui","description":"Networking and GUI","fork":true,"url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui","forks_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/forks","keys_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/teams","hooks_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/hooks","issue_events_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/issues/events{/number}","events_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/events","assignees_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/assignees{/user}","branches_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/branches{/branch}","tags_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/tags","blobs_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/git/refs{/sha}","trees_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/statuses/{sha}","languages_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/languages","stargazers_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/stargazers","contributors_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/contributors","subscribers_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/subscribers","subscription_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/subscription","commits_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/commits{/sha}","git_commits_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/git/commits{/sha}","comments_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/comments{/number}","issue_comment_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/issues/comments{/number}","contents_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/contents/{+path}","compare_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/merges","archive_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/downloads","issues_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/issues{/number}","pulls_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/pulls{/number}","milestones_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/milestones{/number}","notifications_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/labels{/name}","releases_url":"https://api.github.com/repos/KrasimirRaikov/networking-and-gui/releases{/id}","created_at":"2016-01-06T09:24:48Z","updated_at":"2016-01-13T07:21:45Z","pushed_at":"2016-01-14T10:00:12Z","git_url":"git://github.com/KrasimirRaikov/networking-and-gui.git","ssh_url":"git@github.com:KrasimirRaikov/networking-and-gui.git","clone_url":"https://github.com/KrasimirRaikov/networking-and-gui.git","svn_url":"https://github.com/KrasimirRaikov/networking-and-gui","homepage":null,"size":1872,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"clouway-incubator:krasimir","ref":"krasimir","sha":"6604dc3fc61595d134abd2756dc8001f59ba2f94","user":{"login":"clouway-incubator","id":10173098,"avatar_url":"https://avatars.githubusercontent.com/u/10173098?v=3","gravatar_id":"","url":"https://api.github.com/users/clouway-incubator","html_url":"https://github.com/clouway-incubator","followers_url":"https://api.github.com/users/clouway-incubator/followers","following_url":"https://api.github.com/users/clouway-incubator/following{/other_user}","gists_url":"https://api.github.com/users/clouway-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway-incubator/subscriptions","organizations_url":"https://api.github.com/users/clouway-incubator/orgs","repos_url":"https://api.github.com/users/clouway-incubator/repos","events_url":"https://api.github.com/users/clouway-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/clouway-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":43062597,"name":"networking-and-gui","full_name":"clouway-incubator/networking-and-gui","owner":{"login":"clouway-incubator","id":10173098,"avatar_url":"https://avatars.githubusercontent.com/u/10173098?v=3","gravatar_id":"","url":"https://api.github.com/users/clouway-incubator","html_url":"https://github.com/clouway-incubator","followers_url":"https://api.github.com/users/clouway-incubator/followers","following_url":"https://api.github.com/users/clouway-incubator/following{/other_user}","gists_url":"https://api.github.com/users/clouway-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway-incubator/subscriptions","organizations_url":"https://api.github.com/users/clouway-incubator/orgs","repos_url":"https://api.github.com/users/clouway-incubator/repos","events_url":"https://api.github.com/users/clouway-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/clouway-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clouway-incubator/networking-and-gui","description":"Networking and GUI","fork":false,"url":"https://api.github.com/repos/clouway-incubator/networking-and-gui","forks_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/forks","keys_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/teams","hooks_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/hooks","issue_events_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/issues/events{/number}","events_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/events","assignees_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/assignees{/user}","branches_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/branches{/branch}","tags_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/tags","blobs_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/git/refs{/sha}","trees_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/statuses/{sha}","languages_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/languages","stargazers_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/stargazers","contributors_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/contributors","subscribers_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/subscribers","subscription_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/subscription","commits_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/commits{/sha}","git_commits_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/git/commits{/sha}","comments_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/comments{/number}","issue_comment_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/issues/comments{/number}","contents_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/contents/{+path}","compare_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/merges","archive_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/downloads","issues_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/issues{/number}","pulls_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/pulls{/number}","milestones_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/milestones{/number}","notifications_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/labels{/name}","releases_url":"https://api.github.com/repos/clouway-incubator/networking-and-gui/releases{/id}","created_at":"2015-09-24T11:23:01Z","updated_at":"2015-09-24T11:23:01Z","pushed_at":"2016-01-14T14:37:57Z","git_url":"git://github.com/clouway-incubator/networking-and-gui.git","ssh_url":"git@github.com:clouway-incubator/networking-and-gui.git","clone_url":"https://github.com/clouway-incubator/networking-and-gui.git","svn_url":"https://github.com/clouway-incubator/networking-and-gui","homepage":null,"size":2080,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/networking-and-gui/pulls/8"},"html":{"href":"https://github.com/clouway-incubator/networking-and-gui/pull/8"},"issue":{"href":"https://api.github.com/repos/clouway-incubator/networking-and-gui/issues/8"},"comments":{"href":"https://api.github.com/repos/clouway-incubator/networking-and-gui/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/clouway-incubator/networking-and-gui/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/clouway-incubator/networking-and-gui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clouway-incubator/networking-and-gui/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/clouway-incubator/networking-and-gui/statuses/11c75d4d37da574f14721ae2b11503d4e100e371"}}}}