{"action":"created","comment":{"url":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/comments/54557324","id":54557324,"diff_hunk":"@@ -0,0 +1,96 @@\n+package com.clouway.secondtask.dataaccesslayer;\n+\n+import com.clouway.secondtask.core.Person;\n+import com.clouway.secondtask.core.Trip;\n+import org.junit.*;\n+\n+import java.text.DateFormat;\n+import java.text.SimpleDateFormat;\n+import java.util.ArrayList;\n+import java.util.List;\n+\n+import static org.hamcrest.core.Is.is;\n+import static org.junit.Assert.assertThat;\n+\n+/**\n+ * Created by clouway on 16-2-25.\n+ */\n+public class PeopleTripJdbvImplTest {\n+    private PeopleTripJdbcImpl peopleTripJdbc = new PeopleTripJdbcImpl(\"jdbc:mysql://localhost/secondtask\", \"root\", \"clouway.com\");\n+\n+    @Before\n+    public void cleanUp() {\n+        peopleTripJdbc.connectToDatabase();\n+        peopleTripJdbc.deleteTrip(\"content\");\n+        peopleTripJdbc.deletePeople(\"content\");\n+    }\n+\n+\n+    @Test\n+    public void updatePerson() throws Exception {\n+        Person myperson = new Person(\"Dimityr Petrov\", \"8104221534\", 33, \"dpetrov@abv.bg\");\n+        peopleTripJdbc.create(new Person(\"Grigor Dimitrov\", \"8104221534\", 25, \"gdimitrov@abv.bg\"));\n+        peopleTripJdbc.update(myperson);\n+        List<Person> actual = peopleTripJdbc.getPeople();\n+        List<Person> expected = new ArrayList<Person>();\n+        expected.add(myperson);\n+        assertThat(actual, is(expected));\n+    }\n+\n+    @Test\n+    public void registerPerson() throws Exception {","path":"test/com/clouway/secondtask/dataaccesslayer/PeopleTripJdbvImplTest.java","position":41,"original_position":41,"commit_id":"1f94bbb9233b58c3dca0b1a2b0f5b0b8aeaa0ffa","original_commit_id":"1f94bbb9233b58c3dca0b1a2b0f5b0b8aeaa0ffa","user":{"login":"EmilGeorgiev","id":5961191,"avatar_url":"https://avatars.githubusercontent.com/u/5961191?v=3","gravatar_id":"","url":"https://api.github.com/users/EmilGeorgiev","html_url":"https://github.com/EmilGeorgiev","followers_url":"https://api.github.com/users/EmilGeorgiev/followers","following_url":"https://api.github.com/users/EmilGeorgiev/following{/other_user}","gists_url":"https://api.github.com/users/EmilGeorgiev/gists{/gist_id}","starred_url":"https://api.github.com/users/EmilGeorgiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmilGeorgiev/subscriptions","organizations_url":"https://api.github.com/users/EmilGeorgiev/orgs","repos_url":"https://api.github.com/users/EmilGeorgiev/repos","events_url":"https://api.github.com/users/EmilGeorgiev/events{/privacy}","received_events_url":"https://api.github.com/users/EmilGeorgiev/received_events","type":"User","site_admin":false},"body":"unneccesary tests","created_at":"2016-03-01T11:59:56Z","updated_at":"2016-03-01T11:59:56Z","html_url":"https://github.com/clouway-incubator/jdbc/pull/3#discussion_r54557324","pull_request_url":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/comments/54557324"},"html":{"href":"https://github.com/clouway-incubator/jdbc/pull/3#discussion_r54557324"},"pull_request":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/3","id":61091694,"html_url":"https://github.com/clouway-incubator/jdbc/pull/3","diff_url":"https://github.com/clouway-incubator/jdbc/pull/3.diff","patch_url":"https://github.com/clouway-incubator/jdbc/pull/3.patch","issue_url":"https://api.github.com/repos/clouway-incubator/jdbc/issues/3","number":3,"state":"open","locked":false,"title":"JDBC: ready with the tasks","user":{"login":"kristiyanpetkov","id":12229738,"avatar_url":"https://avatars.githubusercontent.com/u/12229738?v=3","gravatar_id":"","url":"https://api.github.com/users/kristiyanpetkov","html_url":"https://github.com/kristiyanpetkov","followers_url":"https://api.github.com/users/kristiyanpetkov/followers","following_url":"https://api.github.com/users/kristiyanpetkov/following{/other_user}","gists_url":"https://api.github.com/users/kristiyanpetkov/gists{/gist_id}","starred_url":"https://api.github.com/users/kristiyanpetkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristiyanpetkov/subscriptions","organizations_url":"https://api.github.com/users/kristiyanpetkov/orgs","repos_url":"https://api.github.com/users/kristiyanpetkov/repos","events_url":"https://api.github.com/users/kristiyanpetkov/events{/privacy}","received_events_url":"https://api.github.com/users/kristiyanpetkov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-29T15:10:55Z","updated_at":"2016-03-01T11:59:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5fd2e5277cf9857e6b6a2316359152cd770b943","assignee":{"login":"EmilGeorgiev","id":5961191,"avatar_url":"https://avatars.githubusercontent.com/u/5961191?v=3","gravatar_id":"","url":"https://api.github.com/users/EmilGeorgiev","html_url":"https://github.com/EmilGeorgiev","followers_url":"https://api.github.com/users/EmilGeorgiev/followers","following_url":"https://api.github.com/users/EmilGeorgiev/following{/other_user}","gists_url":"https://api.github.com/users/EmilGeorgiev/gists{/gist_id}","starred_url":"https://api.github.com/users/EmilGeorgiev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EmilGeorgiev/subscriptions","organizations_url":"https://api.github.com/users/EmilGeorgiev/orgs","repos_url":"https://api.github.com/users/EmilGeorgiev/repos","events_url":"https://api.github.com/users/EmilGeorgiev/events{/privacy}","received_events_url":"https://api.github.com/users/EmilGeorgiev/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/3/commits","review_comments_url":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/3/comments","review_comment_url":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clouway-incubator/jdbc/issues/3/comments","statuses_url":"https://api.github.com/repos/clouway-incubator/jdbc/statuses/1f94bbb9233b58c3dca0b1a2b0f5b0b8aeaa0ffa","head":{"label":"kristiyanpetkov:alljdbctasks","ref":"alljdbctasks","sha":"1f94bbb9233b58c3dca0b1a2b0f5b0b8aeaa0ffa","user":{"login":"kristiyanpetkov","id":12229738,"avatar_url":"https://avatars.githubusercontent.com/u/12229738?v=3","gravatar_id":"","url":"https://api.github.com/users/kristiyanpetkov","html_url":"https://github.com/kristiyanpetkov","followers_url":"https://api.github.com/users/kristiyanpetkov/followers","following_url":"https://api.github.com/users/kristiyanpetkov/following{/other_user}","gists_url":"https://api.github.com/users/kristiyanpetkov/gists{/gist_id}","starred_url":"https://api.github.com/users/kristiyanpetkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristiyanpetkov/subscriptions","organizations_url":"https://api.github.com/users/kristiyanpetkov/orgs","repos_url":"https://api.github.com/users/kristiyanpetkov/repos","events_url":"https://api.github.com/users/kristiyanpetkov/events{/privacy}","received_events_url":"https://api.github.com/users/kristiyanpetkov/received_events","type":"User","site_admin":false},"repo":{"id":52359444,"name":"jdbc","full_name":"kristiyanpetkov/jdbc","owner":{"login":"kristiyanpetkov","id":12229738,"avatar_url":"https://avatars.githubusercontent.com/u/12229738?v=3","gravatar_id":"","url":"https://api.github.com/users/kristiyanpetkov","html_url":"https://github.com/kristiyanpetkov","followers_url":"https://api.github.com/users/kristiyanpetkov/followers","following_url":"https://api.github.com/users/kristiyanpetkov/following{/other_user}","gists_url":"https://api.github.com/users/kristiyanpetkov/gists{/gist_id}","starred_url":"https://api.github.com/users/kristiyanpetkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristiyanpetkov/subscriptions","organizations_url":"https://api.github.com/users/kristiyanpetkov/orgs","repos_url":"https://api.github.com/users/kristiyanpetkov/repos","events_url":"https://api.github.com/users/kristiyanpetkov/events{/privacy}","received_events_url":"https://api.github.com/users/kristiyanpetkov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kristiyanpetkov/jdbc","description":"JDBC","fork":true,"url":"https://api.github.com/repos/kristiyanpetkov/jdbc","forks_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/forks","keys_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/teams","hooks_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/hooks","issue_events_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/issues/events{/number}","events_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/events","assignees_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/assignees{/user}","branches_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/branches{/branch}","tags_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/tags","blobs_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/git/refs{/sha}","trees_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/statuses/{sha}","languages_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/languages","stargazers_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/stargazers","contributors_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/contributors","subscribers_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/subscribers","subscription_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/subscription","commits_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/commits{/sha}","git_commits_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/git/commits{/sha}","comments_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/comments{/number}","issue_comment_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/issues/comments{/number}","contents_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/contents/{+path}","compare_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/merges","archive_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/downloads","issues_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/issues{/number}","pulls_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/pulls{/number}","milestones_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/milestones{/number}","notifications_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/labels{/name}","releases_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/releases{/id}","deployments_url":"https://api.github.com/repos/kristiyanpetkov/jdbc/deployments","created_at":"2016-02-23T13:05:35Z","updated_at":"2015-09-24T11:35:09Z","pushed_at":"2016-03-01T09:05:03Z","git_url":"git://github.com/kristiyanpetkov/jdbc.git","ssh_url":"git@github.com:kristiyanpetkov/jdbc.git","clone_url":"https://github.com/kristiyanpetkov/jdbc.git","svn_url":"https://github.com/kristiyanpetkov/jdbc","homepage":null,"size":59,"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":"clouway-incubator:kristiyan","ref":"kristiyan","sha":"1362c30215d2eeffbfcd256fee6ba4f15e5b7ba0","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":43063108,"name":"jdbc","full_name":"clouway-incubator/jdbc","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/jdbc","description":"JDBC","fork":false,"url":"https://api.github.com/repos/clouway-incubator/jdbc","forks_url":"https://api.github.com/repos/clouway-incubator/jdbc/forks","keys_url":"https://api.github.com/repos/clouway-incubator/jdbc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clouway-incubator/jdbc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clouway-incubator/jdbc/teams","hooks_url":"https://api.github.com/repos/clouway-incubator/jdbc/hooks","issue_events_url":"https://api.github.com/repos/clouway-incubator/jdbc/issues/events{/number}","events_url":"https://api.github.com/repos/clouway-incubator/jdbc/events","assignees_url":"https://api.github.com/repos/clouway-incubator/jdbc/assignees{/user}","branches_url":"https://api.github.com/repos/clouway-incubator/jdbc/branches{/branch}","tags_url":"https://api.github.com/repos/clouway-incubator/jdbc/tags","blobs_url":"https://api.github.com/repos/clouway-incubator/jdbc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clouway-incubator/jdbc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clouway-incubator/jdbc/git/refs{/sha}","trees_url":"https://api.github.com/repos/clouway-incubator/jdbc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clouway-incubator/jdbc/statuses/{sha}","languages_url":"https://api.github.com/repos/clouway-incubator/jdbc/languages","stargazers_url":"https://api.github.com/repos/clouway-incubator/jdbc/stargazers","contributors_url":"https://api.github.com/repos/clouway-incubator/jdbc/contributors","subscribers_url":"https://api.github.com/repos/clouway-incubator/jdbc/subscribers","subscription_url":"https://api.github.com/repos/clouway-incubator/jdbc/subscription","commits_url":"https://api.github.com/repos/clouway-incubator/jdbc/commits{/sha}","git_commits_url":"https://api.github.com/repos/clouway-incubator/jdbc/git/commits{/sha}","comments_url":"https://api.github.com/repos/clouway-incubator/jdbc/comments{/number}","issue_comment_url":"https://api.github.com/repos/clouway-incubator/jdbc/issues/comments{/number}","contents_url":"https://api.github.com/repos/clouway-incubator/jdbc/contents/{+path}","compare_url":"https://api.github.com/repos/clouway-incubator/jdbc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clouway-incubator/jdbc/merges","archive_url":"https://api.github.com/repos/clouway-incubator/jdbc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clouway-incubator/jdbc/downloads","issues_url":"https://api.github.com/repos/clouway-incubator/jdbc/issues{/number}","pulls_url":"https://api.github.com/repos/clouway-incubator/jdbc/pulls{/number}","milestones_url":"https://api.github.com/repos/clouway-incubator/jdbc/milestones{/number}","notifications_url":"https://api.github.com/repos/clouway-incubator/jdbc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clouway-incubator/jdbc/labels{/name}","releases_url":"https://api.github.com/repos/clouway-incubator/jdbc/releases{/id}","deployments_url":"https://api.github.com/repos/clouway-incubator/jdbc/deployments","created_at":"2015-09-24T11:35:09Z","updated_at":"2015-09-24T11:35:09Z","pushed_at":"2016-03-01T09:05:03Z","git_url":"git://github.com/clouway-incubator/jdbc.git","ssh_url":"git@github.com:clouway-incubator/jdbc.git","clone_url":"https://github.com/clouway-incubator/jdbc.git","svn_url":"https://github.com/clouway-incubator/jdbc","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/3"},"html":{"href":"https://github.com/clouway-incubator/jdbc/pull/3"},"issue":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/issues/3"},"comments":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/clouway-incubator/jdbc/statuses/1f94bbb9233b58c3dca0b1a2b0f5b0b8aeaa0ffa"}}}}