GitHub PullRequestReviewCommentEvent at 2014-12-17 22:59:58
Repository: agile-course-practice
Actor: AoD314
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/22012258","id":22012258,"diff_hunk":"@@ -0,0 +1,67 @@\n+package ru.unn.agile.Matrix;\n+\n+import org.junit.Before;\n+import org.junit.Test;\n+import static org.junit.Assert.*;\n+import java.io.BufferedReader;\n+import java.io.FileNotFoundException;\n+import java.io.FileReader;\n+import java.util.List;\n+import static junit.framework.TestCase.assertNotNull;\n+\n+public class TxtLoggerTests {\n+    private static final String FILENAME = \"./TxtLoggerTests.log\";\n+    private TxtLogger txtLogger;\n+\n+    @Before\n+    public void setUp() {\n+        txtLogger = new TxtLogger(FILENAME);\n+    }\n+\n+    @Test\n+    public void canCreateLoggerWithFileName() {\n+        assertNotNull(txtLogger);\n+    }\n+\n+    @Test\n+    public void canCreateLogFileOnDisk() {\n+        try {\n+            new BufferedReader(new FileReader(FILENAME));\n+        } catch (FileNotFoundException e) {\n+            fail(\"File \" + FILENAME + \" wasn't found!\");\n+        }\n+    }\n+\n+    @Test\n+    public void canWriteLogMessage() {\n+        String testMessage = \"Message\";\n+\n+        txtLogger.createLog(testMessage);\n+\n+        String message = txtLogger.getLog().get(0);\n+        assertTrue(message.matches(\".*\" + testMessage + \"$\"));\n+    }\n+\n+    @Test\n+    public void canWriteSeveralLogMessage() {\n+        String[] messages = {\"Message 1\", \"Message 2\"};\n+\n+        txtLogger.createLog(messages[0]);\n+        txtLogger.createLog(messages[1]);\n+\n+        List<String> actualMessages = txtLogger.getLog();\n+        for (int i = 0; i < actualMessages.size(); i++) {","path":"code/ryabenko-sergey/Infrastructure/src/test/java/ru/unn/agile/Matrix/TxtLoggerTests.java","position":53,"original_position":53,"commit_id":"b89d5e57783e24e36c2236e7938d62384ae17b99","original_commit_id":"b89d5e57783e24e36c2236e7938d62384ae17b99","user":{"login":"AoD314","id":437072,"avatar_url":"https://avatars.githubusercontent.com/u/437072?v=3","gravatar_id":"","url":"https://api.github.com/users/AoD314","html_url":"https://github.com/AoD314","followers_url":"https://api.github.com/users/AoD314/followers","following_url":"https://api.github.com/users/AoD314/following{/other_user}","gists_url":"https://api.github.com/users/AoD314/gists{/gist_id}","starred_url":"https://api.github.com/users/AoD314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AoD314/subscriptions","organizations_url":"https://api.github.com/users/AoD314/orgs","repos_url":"https://api.github.com/users/AoD314/repos","events_url":"https://api.github.com/users/AoD314/events{/privacy}","received_events_url":"https://api.github.com/users/AoD314/received_events","type":"User","site_admin":false},"body":"цикл в тесте это плохо","created_at":"2014-12-17T22:59:58Z","updated_at":"2014-12-17T22:59:58Z","html_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/134#discussion_r22012258","pull_request_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/134","_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/22012258"},"html":{"href":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/134#discussion_r22012258"},"pull_request":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/134"}}},"pull_request":{"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/134","id":26100370,"html_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/134","diff_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/134.diff","patch_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/134.patch","issue_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/134","number":134,"state":"open","locked":false,"title":"Рябенко - Лабораторная работа №3","user":{"login":"ryabenko","id":8886763,"avatar_url":"https://avatars.githubusercontent.com/u/8886763?v=3","gravatar_id":"","url":"https://api.github.com/users/ryabenko","html_url":"https://github.com/ryabenko","followers_url":"https://api.github.com/users/ryabenko/followers","following_url":"https://api.github.com/users/ryabenko/following{/other_user}","gists_url":"https://api.github.com/users/ryabenko/gists{/gist_id}","starred_url":"https://api.github.com/users/ryabenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryabenko/subscriptions","organizations_url":"https://api.github.com/users/ryabenko/orgs","repos_url":"https://api.github.com/users/ryabenko/repos","events_url":"https://api.github.com/users/ryabenko/events{/privacy}","received_events_url":"https://api.github.com/users/ryabenko/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-12-15T20:53:01Z","updated_at":"2014-12-17T22:59:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a7959e01298d03238f7dfb40897a5aeee099c6b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/134/commits","review_comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/134/comments","review_comment_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/{number}","comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/134/comments","statuses_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/b89d5e57783e24e36c2236e7938d62384ae17b99","head":{"label":"ryabenko:ryabenko-sergey-lab3","ref":"ryabenko-sergey-lab3","sha":"b89d5e57783e24e36c2236e7938d62384ae17b99","user":{"login":"ryabenko","id":8886763,"avatar_url":"https://avatars.githubusercontent.com/u/8886763?v=3","gravatar_id":"","url":"https://api.github.com/users/ryabenko","html_url":"https://github.com/ryabenko","followers_url":"https://api.github.com/users/ryabenko/followers","following_url":"https://api.github.com/users/ryabenko/following{/other_user}","gists_url":"https://api.github.com/users/ryabenko/gists{/gist_id}","starred_url":"https://api.github.com/users/ryabenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryabenko/subscriptions","organizations_url":"https://api.github.com/users/ryabenko/orgs","repos_url":"https://api.github.com/users/ryabenko/repos","events_url":"https://api.github.com/users/ryabenko/events{/privacy}","received_events_url":"https://api.github.com/users/ryabenko/received_events","type":"User","site_admin":false},"repo":{"id":28045907,"name":"agile-course-practice","full_name":"ryabenko/agile-course-practice","owner":{"login":"ryabenko","id":8886763,"avatar_url":"https://avatars.githubusercontent.com/u/8886763?v=3","gravatar_id":"","url":"https://api.github.com/users/ryabenko","html_url":"https://github.com/ryabenko","followers_url":"https://api.github.com/users/ryabenko/followers","following_url":"https://api.github.com/users/ryabenko/following{/other_user}","gists_url":"https://api.github.com/users/ryabenko/gists{/gist_id}","starred_url":"https://api.github.com/users/ryabenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryabenko/subscriptions","organizations_url":"https://api.github.com/users/ryabenko/orgs","repos_url":"https://api.github.com/users/ryabenko/repos","events_url":"https://api.github.com/users/ryabenko/events{/privacy}","received_events_url":"https://api.github.com/users/ryabenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryabenko/agile-course-practice","description":"Master course on Agile Development","fork":true,"url":"https://api.github.com/repos/ryabenko/agile-course-practice","forks_url":"https://api.github.com/repos/ryabenko/agile-course-practice/forks","keys_url":"https://api.github.com/repos/ryabenko/agile-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryabenko/agile-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryabenko/agile-course-practice/teams","hooks_url":"https://api.github.com/repos/ryabenko/agile-course-practice/hooks","issue_events_url":"https://api.github.com/repos/ryabenko/agile-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/ryabenko/agile-course-practice/events","assignees_url":"https://api.github.com/repos/ryabenko/agile-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/ryabenko/agile-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/ryabenko/agile-course-practice/tags","blobs_url":"https://api.github.com/repos/ryabenko/agile-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryabenko/agile-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryabenko/agile-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryabenko/agile-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryabenko/agile-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/ryabenko/agile-course-practice/languages","stargazers_url":"https://api.github.com/repos/ryabenko/agile-course-practice/stargazers","contributors_url":"https://api.github.com/repos/ryabenko/agile-course-practice/contributors","subscribers_url":"https://api.github.com/repos/ryabenko/agile-course-practice/subscribers","subscription_url":"https://api.github.com/repos/ryabenko/agile-course-practice/subscription","commits_url":"https://api.github.com/repos/ryabenko/agile-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryabenko/agile-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryabenko/agile-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryabenko/agile-course-practice/issues/comments/{number}","contents_url":"https://api.github.com/repos/ryabenko/agile-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/ryabenko/agile-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryabenko/agile-course-practice/merges","archive_url":"https://api.github.com/repos/ryabenko/agile-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryabenko/agile-course-practice/downloads","issues_url":"https://api.github.com/repos/ryabenko/agile-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/ryabenko/agile-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/ryabenko/agile-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/ryabenko/agile-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryabenko/agile-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/ryabenko/agile-course-practice/releases{/id}","created_at":"2014-12-15T16:43:34Z","updated_at":"2014-12-15T16:43:35Z","pushed_at":"2014-12-17T22:15:57Z","git_url":"git://github.com/ryabenko/agile-course-practice.git","ssh_url":"git@github.com:ryabenko/agile-course-practice.git","clone_url":"https://github.com/ryabenko/agile-course-practice.git","svn_url":"https://github.com/ryabenko/agile-course-practice","homepage":"","size":3287,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"UNN-VMK-Software:master","ref":"master","sha":"3121721617fb6b8f37c4973017cb55948d8fcede","user":{"login":"UNN-VMK-Software","id":5463209,"avatar_url":"https://avatars.githubusercontent.com/u/5463209?v=3","gravatar_id":"","url":"https://api.github.com/users/UNN-VMK-Software","html_url":"https://github.com/UNN-VMK-Software","followers_url":"https://api.github.com/users/UNN-VMK-Software/followers","following_url":"https://api.github.com/users/UNN-VMK-Software/following{/other_user}","gists_url":"https://api.github.com/users/UNN-VMK-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/UNN-VMK-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNN-VMK-Software/subscriptions","organizations_url":"https://api.github.com/users/UNN-VMK-Software/orgs","repos_url":"https://api.github.com/users/UNN-VMK-Software/repos","events_url":"https://api.github.com/users/UNN-VMK-Software/events{/privacy}","received_events_url":"https://api.github.com/users/UNN-VMK-Software/received_events","type":"Organization","site_admin":false},"repo":{"id":22540232,"name":"agile-course-practice","full_name":"UNN-VMK-Software/agile-course-practice","owner":{"login":"UNN-VMK-Software","id":5463209,"avatar_url":"https://avatars.githubusercontent.com/u/5463209?v=3","gravatar_id":"","url":"https://api.github.com/users/UNN-VMK-Software","html_url":"https://github.com/UNN-VMK-Software","followers_url":"https://api.github.com/users/UNN-VMK-Software/followers","following_url":"https://api.github.com/users/UNN-VMK-Software/following{/other_user}","gists_url":"https://api.github.com/users/UNN-VMK-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/UNN-VMK-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNN-VMK-Software/subscriptions","organizations_url":"https://api.github.com/users/UNN-VMK-Software/orgs","repos_url":"https://api.github.com/users/UNN-VMK-Software/repos","events_url":"https://api.github.com/users/UNN-VMK-Software/events{/privacy}","received_events_url":"https://api.github.com/users/UNN-VMK-Software/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UNN-VMK-Software/agile-course-practice","description":"Master course on Agile Development","fork":false,"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice","forks_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/forks","keys_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/teams","hooks_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/hooks","issue_events_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/events","assignees_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/tags","blobs_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/languages","stargazers_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/stargazers","contributors_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/contributors","subscribers_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/subscribers","subscription_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/subscription","commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/comments/{number}","contents_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/merges","archive_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/downloads","issues_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/releases{/id}","created_at":"2014-08-02T05:53:52Z","updated_at":"2014-12-17T07:05:13Z","pushed_at":"2014-12-17T07:06:14Z","git_url":"git://github.com/UNN-VMK-Software/agile-course-practice.git","ssh_url":"git@github.com:UNN-VMK-Software/agile-course-practice.git","clone_url":"https://github.com/UNN-VMK-Software/agile-course-practice.git","svn_url":"https://github.com/UNN-VMK-Software/agile-course-practice","homepage":"","size":3287,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":5,"forks":38,"open_issues":5,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/134"},"html":{"href":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/134"},"issue":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/134"},"comments":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/b89d5e57783e24e36c2236e7938d62384ae17b99"}}}}