{"action":"created","comment":{"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/154535576","pull_request_review_id":80711848,"id":154535576,"diff_hunk":"@@ -0,0 +1,410 @@\n+package ru.unn.agile.Triangle.Model;\n+\n+import org.junit.Test;\n+\n+import java.awt.geom.Point2D;\n+\n+import static org.junit.Assert.*;\n+\n+public class TriangleTest {\n+    @Test\n+    public void canCreateTriangle2D() {\n+        Point2D a  = new Point2D.Double(0, 0);\n+        Point2D b  = new Point2D.Double(1, 0);\n+        Point2D c  = new Point2D.Double(0, 1);\n+\n+        Triangle triangle = new Triangle(a, b, c);\n+\n+        assertNotNull(triangle);\n+    }\n+\n+    @Test\n+    public void canNotCreateDegeneratedTriangle() {\n+        Point2D a = new Point2D.Double(0, 0);\n+        Point2D b = new Point2D.Double(0, 0);\n+        Point2D c = new Point2D.Double(0, 1);\n+\n+        try {\n+            Triangle triangle = new Triangle(a, b, c);\n+        } catch (Error e) {\n+            assertTrue(true);\n+            return;\n+        }\n+        assertTrue(false);\n+    }\n+\n+    @Test\n+    public void canNotCreateDegeneratedTriangleWithCoordinatesOnOneLine() {\n+        Point2D a = new Point2D.Double(0, 0);\n+        Point2D b = new Point2D.Double(-1, -1);\n+        Point2D c = new Point2D.Double(1, 1);\n+\n+        try {\n+            Triangle triangle = new Triangle(a, b, c);\n+        } catch (Error e) {\n+            assertTrue(true);\n+            return;\n+        }\n+        assertTrue(false);\n+    }\n+\n+    @Test\n+    public void canGetLengthAB() {\n+        Point2D a = new Point2D.Double(0, 0);\n+        Point2D b = new Point2D.Double(1, 0);\n+        Point2D c = new Point2D.Double(0, 1);\n+\n+        double targetLength = 1;\n+\n+        Triangle triangle = new Triangle(a, b, c);\n+\n+        double lengthAB = triangle.getLengthAB();\n+        assertTrue(lengthAB == targetLength);","path":"code/triangle/src/test/java/ru/unn/agile/Triangle/Model/TriangleTest.java","position":50,"original_position":62,"commit_id":"ea5f76c5a682d2382b683c565e298c90b89d940a","original_commit_id":"1c9e16c4e50b64e449d172aaf6f57109060dd29f","user":{"login":"VadimLevin","id":6630567,"avatar_url":"https://avatars0.githubusercontent.com/u/6630567?v=4","gravatar_id":"","url":"https://api.github.com/users/VadimLevin","html_url":"https://github.com/VadimLevin","followers_url":"https://api.github.com/users/VadimLevin/followers","following_url":"https://api.github.com/users/VadimLevin/following{/other_user}","gists_url":"https://api.github.com/users/VadimLevin/gists{/gist_id}","starred_url":"https://api.github.com/users/VadimLevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VadimLevin/subscriptions","organizations_url":"https://api.github.com/users/VadimLevin/orgs","repos_url":"https://api.github.com/users/VadimLevin/repos","events_url":"https://api.github.com/users/VadimLevin/events{/privacy}","received_events_url":"https://api.github.com/users/VadimLevin/received_events","type":"User","site_admin":false},"body":"Deprecated. Use assertEquals(double expected, double actual, double epsilon) instead","created_at":"2017-12-03T20:27:06Z","updated_at":"2017-12-03T20:32:33Z","html_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/24#discussion_r154535576","pull_request_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/24","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/154535576"},"html":{"href":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/24#discussion_r154535576"},"pull_request":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/24"}},"in_reply_to_id":153026349},"pull_request":{"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/24","id":154456224,"html_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/24","diff_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/24.diff","patch_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/24.patch","issue_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/24","number":24,"state":"open","locked":false,"title":"Умников - Лабораторная работа #1","user":{"login":"eugenikov","id":33801370,"avatar_url":"https://avatars2.githubusercontent.com/u/33801370?v=4","gravatar_id":"","url":"https://api.github.com/users/eugenikov","html_url":"https://github.com/eugenikov","followers_url":"https://api.github.com/users/eugenikov/followers","following_url":"https://api.github.com/users/eugenikov/following{/other_user}","gists_url":"https://api.github.com/users/eugenikov/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenikov/subscriptions","organizations_url":"https://api.github.com/users/eugenikov/orgs","repos_url":"https://api.github.com/users/eugenikov/repos","events_url":"https://api.github.com/users/eugenikov/events{/privacy}","received_events_url":"https://api.github.com/users/eugenikov/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-23T23:59:50Z","updated_at":"2017-12-03T20:32:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d91903f81c1afec3ea8a0d85d1b83b25731aa88c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/24/commits","review_comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/24/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/24/comments","statuses_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/ea5f76c5a682d2382b683c565e298c90b89d940a","head":{"label":"eugenikov:lab1-tdd-triangle","ref":"lab1-tdd-triangle","sha":"ea5f76c5a682d2382b683c565e298c90b89d940a","user":{"login":"eugenikov","id":33801370,"avatar_url":"https://avatars2.githubusercontent.com/u/33801370?v=4","gravatar_id":"","url":"https://api.github.com/users/eugenikov","html_url":"https://github.com/eugenikov","followers_url":"https://api.github.com/users/eugenikov/followers","following_url":"https://api.github.com/users/eugenikov/following{/other_user}","gists_url":"https://api.github.com/users/eugenikov/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenikov/subscriptions","organizations_url":"https://api.github.com/users/eugenikov/orgs","repos_url":"https://api.github.com/users/eugenikov/repos","events_url":"https://api.github.com/users/eugenikov/events{/privacy}","received_events_url":"https://api.github.com/users/eugenikov/received_events","type":"User","site_admin":false},"repo":{"id":111283446,"name":"agile-course-practice","full_name":"eugenikov/agile-course-practice","owner":{"login":"eugenikov","id":33801370,"avatar_url":"https://avatars2.githubusercontent.com/u/33801370?v=4","gravatar_id":"","url":"https://api.github.com/users/eugenikov","html_url":"https://github.com/eugenikov","followers_url":"https://api.github.com/users/eugenikov/followers","following_url":"https://api.github.com/users/eugenikov/following{/other_user}","gists_url":"https://api.github.com/users/eugenikov/gists{/gist_id}","starred_url":"https://api.github.com/users/eugenikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugenikov/subscriptions","organizations_url":"https://api.github.com/users/eugenikov/orgs","repos_url":"https://api.github.com/users/eugenikov/repos","events_url":"https://api.github.com/users/eugenikov/events{/privacy}","received_events_url":"https://api.github.com/users/eugenikov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eugenikov/agile-course-practice","description":null,"fork":true,"url":"https://api.github.com/repos/eugenikov/agile-course-practice","forks_url":"https://api.github.com/repos/eugenikov/agile-course-practice/forks","keys_url":"https://api.github.com/repos/eugenikov/agile-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eugenikov/agile-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eugenikov/agile-course-practice/teams","hooks_url":"https://api.github.com/repos/eugenikov/agile-course-practice/hooks","issue_events_url":"https://api.github.com/repos/eugenikov/agile-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/eugenikov/agile-course-practice/events","assignees_url":"https://api.github.com/repos/eugenikov/agile-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/eugenikov/agile-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/eugenikov/agile-course-practice/tags","blobs_url":"https://api.github.com/repos/eugenikov/agile-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eugenikov/agile-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eugenikov/agile-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/eugenikov/agile-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eugenikov/agile-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/eugenikov/agile-course-practice/languages","stargazers_url":"https://api.github.com/repos/eugenikov/agile-course-practice/stargazers","contributors_url":"https://api.github.com/repos/eugenikov/agile-course-practice/contributors","subscribers_url":"https://api.github.com/repos/eugenikov/agile-course-practice/subscribers","subscription_url":"https://api.github.com/repos/eugenikov/agile-course-practice/subscription","commits_url":"https://api.github.com/repos/eugenikov/agile-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/eugenikov/agile-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/eugenikov/agile-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/eugenikov/agile-course-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/eugenikov/agile-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/eugenikov/agile-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eugenikov/agile-course-practice/merges","archive_url":"https://api.github.com/repos/eugenikov/agile-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eugenikov/agile-course-practice/downloads","issues_url":"https://api.github.com/repos/eugenikov/agile-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/eugenikov/agile-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/eugenikov/agile-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/eugenikov/agile-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eugenikov/agile-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/eugenikov/agile-course-practice/releases{/id}","deployments_url":"https://api.github.com/repos/eugenikov/agile-course-practice/deployments","created_at":"2017-11-19T09:58:25Z","updated_at":"2017-11-19T09:58:27Z","pushed_at":"2017-12-03T18:56:29Z","git_url":"git://github.com/eugenikov/agile-course-practice.git","ssh_url":"git@github.com:eugenikov/agile-course-practice.git","clone_url":"https://github.com/eugenikov/agile-course-practice.git","svn_url":"https://github.com/eugenikov/agile-course-practice","homepage":null,"size":116,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"UNN-VMK-Software:master","ref":"master","sha":"9e4c744c62b76dc69be78ac5842938f449ce1818","user":{"login":"UNN-VMK-Software","id":5463209,"avatar_url":"https://avatars2.githubusercontent.com/u/5463209?v=4","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":110359761,"name":"agile-course-practice","full_name":"UNN-VMK-Software/agile-course-practice","owner":{"login":"UNN-VMK-Software","id":5463209,"avatar_url":"https://avatars2.githubusercontent.com/u/5463209?v=4","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":null,"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}","deployments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/deployments","created_at":"2017-11-11T16:12:38Z","updated_at":"2017-11-11T16:13:06Z","pushed_at":"2017-12-03T20:11:00Z","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":null,"size":143,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":28,"license":null,"forks":24,"open_issues":28,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/24"},"html":{"href":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/24"},"issue":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/24"},"comments":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/24/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/24/commits"},"statuses":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/ea5f76c5a682d2382b683c565e298c90b89d940a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"VadimLevin"}}