{"action":"created","comment":{"url":"https://api.github.com/repos/v-log/Training/pulls/comments/77538083","id":77538083,"diff_hunk":"@@ -0,0 +1,139 @@\n+package Ex_1_2_12;\n+\n+import org.junit.Test;\n+\n+import static junit.framework.TestCase.assertEquals;\n+import static junit.framework.TestCase.fail;\n+\n+/**\n+ * Created by vl on 04.09.16.\n+ */\n+public class SmartDateTest {\n+    @Test\n+    public void monthTest() throws Exception {\n+        SmartDate date1 = new SmartDate(9, 4, 2016);\n+        SmartDate date2 = new SmartDate(12, 25, 2004);\n+        SmartDate date3 = new SmartDate(4, 17, 2009);\n+        int month1 = date1.month();\n+        int month2 = date2.month();\n+        int month3 = date3.month();\n+        assertEquals(9, month1);\n+        assertEquals(12, month2);\n+        assertEquals(4, month3);\n+    }\n+\n+    @Test\n+    public void dayTest() throws Exception {\n+        SmartDate date1 = new SmartDate(9, 4, 2016);\n+        SmartDate date2 = new SmartDate(12, 25, 2004);\n+        SmartDate date3 = new SmartDate(4, 17, 2009);\n+        int day1 = date1.day();\n+        int day2 = date2.day();\n+        int day3 = date3.day();\n+        assertEquals(4, day1);\n+        assertEquals(25, day2);\n+        assertEquals(17, day3);\n+    }\n+\n+    @Test\n+    public void yearTest() throws Exception {\n+        SmartDate date1 = new SmartDate(9, 4, 2016);\n+        SmartDate date2 = new SmartDate(12, 25, 2004);\n+        SmartDate date3 = new SmartDate(4, 17, 2009);\n+        int year1 = date1.year();\n+        int year2 = date2.year();\n+        int year3 = date3.year();\n+        assertEquals(2016, year1);\n+        assertEquals(2004, year2);\n+        assertEquals(2009, year3);\n+    }\n+\n+    @Test\n+    public void isDateLegalTest() throws Exception {","path":"tests/Ex_1_2_12/SmartDateTest.java","position":52,"original_position":52,"commit_id":"d6cdcfa575088d1a3dbb299397b8fc9384d3e465","original_commit_id":"d6cdcfa575088d1a3dbb299397b8fc9384d3e465","user":{"login":"be9","id":920,"avatar_url":"https://avatars.githubusercontent.com/u/920?v=3","gravatar_id":"","url":"https://api.github.com/users/be9","html_url":"https://github.com/be9","followers_url":"https://api.github.com/users/be9/followers","following_url":"https://api.github.com/users/be9/following{/other_user}","gists_url":"https://api.github.com/users/be9/gists{/gist_id}","starred_url":"https://api.github.com/users/be9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/be9/subscriptions","organizations_url":"https://api.github.com/users/be9/orgs","repos_url":"https://api.github.com/users/be9/repos","events_url":"https://api.github.com/users/be9/events{/privacy}","received_events_url":"https://api.github.com/users/be9/received_events","type":"User","site_admin":false},"body":"А тут что?","created_at":"2016-09-05T15:41:59Z","updated_at":"2016-09-05T15:41:59Z","html_url":"https://github.com/v-log/Training/pull/8#discussion_r77538083","pull_request_url":"https://api.github.com/repos/v-log/Training/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/v-log/Training/pulls/comments/77538083"},"html":{"href":"https://github.com/v-log/Training/pull/8#discussion_r77538083"},"pull_request":{"href":"https://api.github.com/repos/v-log/Training/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/v-log/Training/pulls/8","id":82149876,"html_url":"https://github.com/v-log/Training/pull/8","diff_url":"https://github.com/v-log/Training/pull/8.diff","patch_url":"https://github.com/v-log/Training/pull/8.patch","issue_url":"https://api.github.com/repos/v-log/Training/issues/8","number":8,"state":"open","locked":false,"title":"Решение 1.2.12 ( + 1.2.11)","user":{"login":"v-log","id":19331788,"avatar_url":"https://avatars.githubusercontent.com/u/19331788?v=3","gravatar_id":"","url":"https://api.github.com/users/v-log","html_url":"https://github.com/v-log","followers_url":"https://api.github.com/users/v-log/followers","following_url":"https://api.github.com/users/v-log/following{/other_user}","gists_url":"https://api.github.com/users/v-log/gists{/gist_id}","starred_url":"https://api.github.com/users/v-log/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-log/subscriptions","organizations_url":"https://api.github.com/users/v-log/orgs","repos_url":"https://api.github.com/users/v-log/repos","events_url":"https://api.github.com/users/v-log/events{/privacy}","received_events_url":"https://api.github.com/users/v-log/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-22T08:15:30Z","updated_at":"2016-09-05T15:41:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"510bf499218f6ce7b45c456c25f1b372553f8eeb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/v-log/Training/pulls/8/commits","review_comments_url":"https://api.github.com/repos/v-log/Training/pulls/8/comments","review_comment_url":"https://api.github.com/repos/v-log/Training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/v-log/Training/issues/8/comments","statuses_url":"https://api.github.com/repos/v-log/Training/statuses/d6cdcfa575088d1a3dbb299397b8fc9384d3e465","head":{"label":"v-log:1_2_12","ref":"1_2_12","sha":"d6cdcfa575088d1a3dbb299397b8fc9384d3e465","user":{"login":"v-log","id":19331788,"avatar_url":"https://avatars.githubusercontent.com/u/19331788?v=3","gravatar_id":"","url":"https://api.github.com/users/v-log","html_url":"https://github.com/v-log","followers_url":"https://api.github.com/users/v-log/followers","following_url":"https://api.github.com/users/v-log/following{/other_user}","gists_url":"https://api.github.com/users/v-log/gists{/gist_id}","starred_url":"https://api.github.com/users/v-log/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-log/subscriptions","organizations_url":"https://api.github.com/users/v-log/orgs","repos_url":"https://api.github.com/users/v-log/repos","events_url":"https://api.github.com/users/v-log/events{/privacy}","received_events_url":"https://api.github.com/users/v-log/received_events","type":"User","site_admin":false},"repo":{"id":61813885,"name":"Training","full_name":"v-log/Training","owner":{"login":"v-log","id":19331788,"avatar_url":"https://avatars.githubusercontent.com/u/19331788?v=3","gravatar_id":"","url":"https://api.github.com/users/v-log","html_url":"https://github.com/v-log","followers_url":"https://api.github.com/users/v-log/followers","following_url":"https://api.github.com/users/v-log/following{/other_user}","gists_url":"https://api.github.com/users/v-log/gists{/gist_id}","starred_url":"https://api.github.com/users/v-log/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-log/subscriptions","organizations_url":"https://api.github.com/users/v-log/orgs","repos_url":"https://api.github.com/users/v-log/repos","events_url":"https://api.github.com/users/v-log/events{/privacy}","received_events_url":"https://api.github.com/users/v-log/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/v-log/Training","description":"Training Exercises","fork":false,"url":"https://api.github.com/repos/v-log/Training","forks_url":"https://api.github.com/repos/v-log/Training/forks","keys_url":"https://api.github.com/repos/v-log/Training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/v-log/Training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/v-log/Training/teams","hooks_url":"https://api.github.com/repos/v-log/Training/hooks","issue_events_url":"https://api.github.com/repos/v-log/Training/issues/events{/number}","events_url":"https://api.github.com/repos/v-log/Training/events","assignees_url":"https://api.github.com/repos/v-log/Training/assignees{/user}","branches_url":"https://api.github.com/repos/v-log/Training/branches{/branch}","tags_url":"https://api.github.com/repos/v-log/Training/tags","blobs_url":"https://api.github.com/repos/v-log/Training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/v-log/Training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/v-log/Training/git/refs{/sha}","trees_url":"https://api.github.com/repos/v-log/Training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/v-log/Training/statuses/{sha}","languages_url":"https://api.github.com/repos/v-log/Training/languages","stargazers_url":"https://api.github.com/repos/v-log/Training/stargazers","contributors_url":"https://api.github.com/repos/v-log/Training/contributors","subscribers_url":"https://api.github.com/repos/v-log/Training/subscribers","subscription_url":"https://api.github.com/repos/v-log/Training/subscription","commits_url":"https://api.github.com/repos/v-log/Training/commits{/sha}","git_commits_url":"https://api.github.com/repos/v-log/Training/git/commits{/sha}","comments_url":"https://api.github.com/repos/v-log/Training/comments{/number}","issue_comment_url":"https://api.github.com/repos/v-log/Training/issues/comments{/number}","contents_url":"https://api.github.com/repos/v-log/Training/contents/{+path}","compare_url":"https://api.github.com/repos/v-log/Training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/v-log/Training/merges","archive_url":"https://api.github.com/repos/v-log/Training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/v-log/Training/downloads","issues_url":"https://api.github.com/repos/v-log/Training/issues{/number}","pulls_url":"https://api.github.com/repos/v-log/Training/pulls{/number}","milestones_url":"https://api.github.com/repos/v-log/Training/milestones{/number}","notifications_url":"https://api.github.com/repos/v-log/Training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/v-log/Training/labels{/name}","releases_url":"https://api.github.com/repos/v-log/Training/releases{/id}","deployments_url":"https://api.github.com/repos/v-log/Training/deployments","created_at":"2016-06-23T14:58:09Z","updated_at":"2016-06-25T09:38:37Z","pushed_at":"2016-09-05T10:31:17Z","git_url":"git://github.com/v-log/Training.git","ssh_url":"git@github.com:v-log/Training.git","clone_url":"https://github.com/v-log/Training.git","svn_url":"https://github.com/v-log/Training","homepage":null,"size":2088,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"v-log:master","ref":"master","sha":"00a7ad65f2c2bd702acdd60c01d26dfb328395c2","user":{"login":"v-log","id":19331788,"avatar_url":"https://avatars.githubusercontent.com/u/19331788?v=3","gravatar_id":"","url":"https://api.github.com/users/v-log","html_url":"https://github.com/v-log","followers_url":"https://api.github.com/users/v-log/followers","following_url":"https://api.github.com/users/v-log/following{/other_user}","gists_url":"https://api.github.com/users/v-log/gists{/gist_id}","starred_url":"https://api.github.com/users/v-log/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-log/subscriptions","organizations_url":"https://api.github.com/users/v-log/orgs","repos_url":"https://api.github.com/users/v-log/repos","events_url":"https://api.github.com/users/v-log/events{/privacy}","received_events_url":"https://api.github.com/users/v-log/received_events","type":"User","site_admin":false},"repo":{"id":61813885,"name":"Training","full_name":"v-log/Training","owner":{"login":"v-log","id":19331788,"avatar_url":"https://avatars.githubusercontent.com/u/19331788?v=3","gravatar_id":"","url":"https://api.github.com/users/v-log","html_url":"https://github.com/v-log","followers_url":"https://api.github.com/users/v-log/followers","following_url":"https://api.github.com/users/v-log/following{/other_user}","gists_url":"https://api.github.com/users/v-log/gists{/gist_id}","starred_url":"https://api.github.com/users/v-log/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-log/subscriptions","organizations_url":"https://api.github.com/users/v-log/orgs","repos_url":"https://api.github.com/users/v-log/repos","events_url":"https://api.github.com/users/v-log/events{/privacy}","received_events_url":"https://api.github.com/users/v-log/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/v-log/Training","description":"Training Exercises","fork":false,"url":"https://api.github.com/repos/v-log/Training","forks_url":"https://api.github.com/repos/v-log/Training/forks","keys_url":"https://api.github.com/repos/v-log/Training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/v-log/Training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/v-log/Training/teams","hooks_url":"https://api.github.com/repos/v-log/Training/hooks","issue_events_url":"https://api.github.com/repos/v-log/Training/issues/events{/number}","events_url":"https://api.github.com/repos/v-log/Training/events","assignees_url":"https://api.github.com/repos/v-log/Training/assignees{/user}","branches_url":"https://api.github.com/repos/v-log/Training/branches{/branch}","tags_url":"https://api.github.com/repos/v-log/Training/tags","blobs_url":"https://api.github.com/repos/v-log/Training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/v-log/Training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/v-log/Training/git/refs{/sha}","trees_url":"https://api.github.com/repos/v-log/Training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/v-log/Training/statuses/{sha}","languages_url":"https://api.github.com/repos/v-log/Training/languages","stargazers_url":"https://api.github.com/repos/v-log/Training/stargazers","contributors_url":"https://api.github.com/repos/v-log/Training/contributors","subscribers_url":"https://api.github.com/repos/v-log/Training/subscribers","subscription_url":"https://api.github.com/repos/v-log/Training/subscription","commits_url":"https://api.github.com/repos/v-log/Training/commits{/sha}","git_commits_url":"https://api.github.com/repos/v-log/Training/git/commits{/sha}","comments_url":"https://api.github.com/repos/v-log/Training/comments{/number}","issue_comment_url":"https://api.github.com/repos/v-log/Training/issues/comments{/number}","contents_url":"https://api.github.com/repos/v-log/Training/contents/{+path}","compare_url":"https://api.github.com/repos/v-log/Training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/v-log/Training/merges","archive_url":"https://api.github.com/repos/v-log/Training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/v-log/Training/downloads","issues_url":"https://api.github.com/repos/v-log/Training/issues{/number}","pulls_url":"https://api.github.com/repos/v-log/Training/pulls{/number}","milestones_url":"https://api.github.com/repos/v-log/Training/milestones{/number}","notifications_url":"https://api.github.com/repos/v-log/Training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/v-log/Training/labels{/name}","releases_url":"https://api.github.com/repos/v-log/Training/releases{/id}","deployments_url":"https://api.github.com/repos/v-log/Training/deployments","created_at":"2016-06-23T14:58:09Z","updated_at":"2016-06-25T09:38:37Z","pushed_at":"2016-09-05T10:31:17Z","git_url":"git://github.com/v-log/Training.git","ssh_url":"git@github.com:v-log/Training.git","clone_url":"https://github.com/v-log/Training.git","svn_url":"https://github.com/v-log/Training","homepage":null,"size":2088,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/v-log/Training/pulls/8"},"html":{"href":"https://github.com/v-log/Training/pull/8"},"issue":{"href":"https://api.github.com/repos/v-log/Training/issues/8"},"comments":{"href":"https://api.github.com/repos/v-log/Training/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/v-log/Training/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/v-log/Training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/v-log/Training/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/v-log/Training/statuses/d6cdcfa575088d1a3dbb299397b8fc9384d3e465"}}}}
{"actor":{"display_login":"be9"}}