{"action":"created","comment":{"url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/pulls/comments/179954375","pull_request_review_id":110293760,"id":179954375,"diff_hunk":"@@ -0,0 +1,122 @@\n+package services.dao;\n+\n+\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.springframework.boot.test.context.SpringBootTest;\n+import org.springframework.beans.factory.annotation.Autowired;\n+\n+\n+import org.springframework.test.context.junit4.SpringRunner;\n+import org.springframework.transaction.annotation.Transactional;\n+import services.model.User;\n+\n+import static org.junit.Assert.assertEquals;\n+import static org.junit.Assert.assertNotNull;\n+\n+\n+@RunWith(SpringRunner.class)\n+@SpringBootTest\n+@Transactional\n+public class UserDAOTest {\n+    private static final String LOGIN = \"example_login\";\n+    private static final String NICKNAME = \"example_nickname\";\n+    private static final String PASSWORD = \"example_password\";\n+    private static final String UPDATED_PASSWORD = \"example_updated_password\";\n+    private static final String UPDATED_AVATAR = \"new_avatar.png\";\n+    private static final int USER_PER_PAGE = 10;\n+\n+    @Autowired\n+    private UserDAO userService;\n+\n+\n+    @Test\n+    public void testSimpleCreateUser() {\n+        final User userToRegister = new User(NICKNAME, LOGIN, PASSWORD, 0);","path":"src/test/java/services/dao/UserDAOTest.java","position":35,"original_position":35,"commit_id":"a9f48cdff47b285f89bfbab1286a97590495a35b","original_commit_id":"a9f48cdff47b285f89bfbab1286a97590495a35b","user":{"login":"Badya","id":2569356,"avatar_url":"https://avatars1.githubusercontent.com/u/2569356?v=4","gravatar_id":"","url":"https://api.github.com/users/Badya","html_url":"https://github.com/Badya","followers_url":"https://api.github.com/users/Badya/followers","following_url":"https://api.github.com/users/Badya/following{/other_user}","gists_url":"https://api.github.com/users/Badya/gists{/gist_id}","starred_url":"https://api.github.com/users/Badya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Badya/subscriptions","organizations_url":"https://api.github.com/users/Badya/orgs","repos_url":"https://api.github.com/users/Badya/repos","events_url":"https://api.github.com/users/Badya/events{/privacy}","received_events_url":"https://api.github.com/users/Badya/received_events","type":"User","site_admin":false},"body":"User можно инициализовать в `@Before` и тогда не нужно статических строк и прочего","created_at":"2018-04-08T17:12:15Z","updated_at":"2018-04-08T17:15:31Z","html_url":"https://github.com/java-park-mail-ru/Accord-02-2018/pull/3#discussion_r179954375","pull_request_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/pulls/comments/179954375"},"html":{"href":"https://github.com/java-park-mail-ru/Accord-02-2018/pull/3#discussion_r179954375"},"pull_request":{"href":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/pulls/3","id":179605110,"html_url":"https://github.com/java-park-mail-ru/Accord-02-2018/pull/3","diff_url":"https://github.com/java-park-mail-ru/Accord-02-2018/pull/3.diff","patch_url":"https://github.com/java-park-mail-ru/Accord-02-2018/pull/3.patch","issue_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/issues/3","number":3,"state":"open","locked":false,"title":"Rk2","user":{"login":"Meganster","id":20360999,"avatar_url":"https://avatars0.githubusercontent.com/u/20360999?v=4","gravatar_id":"","url":"https://api.github.com/users/Meganster","html_url":"https://github.com/Meganster","followers_url":"https://api.github.com/users/Meganster/followers","following_url":"https://api.github.com/users/Meganster/following{/other_user}","gists_url":"https://api.github.com/users/Meganster/gists{/gist_id}","starred_url":"https://api.github.com/users/Meganster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meganster/subscriptions","organizations_url":"https://api.github.com/users/Meganster/orgs","repos_url":"https://api.github.com/users/Meganster/repos","events_url":"https://api.github.com/users/Meganster/events{/privacy}","received_events_url":"https://api.github.com/users/Meganster/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-05T08:30:50Z","updated_at":"2018-04-08T17:15:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4163e6f5ea954aadd3d3c1ea3c235da8db479719","assignee":{"login":"Badya","id":2569356,"avatar_url":"https://avatars1.githubusercontent.com/u/2569356?v=4","gravatar_id":"","url":"https://api.github.com/users/Badya","html_url":"https://github.com/Badya","followers_url":"https://api.github.com/users/Badya/followers","following_url":"https://api.github.com/users/Badya/following{/other_user}","gists_url":"https://api.github.com/users/Badya/gists{/gist_id}","starred_url":"https://api.github.com/users/Badya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Badya/subscriptions","organizations_url":"https://api.github.com/users/Badya/orgs","repos_url":"https://api.github.com/users/Badya/repos","events_url":"https://api.github.com/users/Badya/events{/privacy}","received_events_url":"https://api.github.com/users/Badya/received_events","type":"User","site_admin":false},"assignees":[{"login":"Badya","id":2569356,"avatar_url":"https://avatars1.githubusercontent.com/u/2569356?v=4","gravatar_id":"","url":"https://api.github.com/users/Badya","html_url":"https://github.com/Badya","followers_url":"https://api.github.com/users/Badya/followers","following_url":"https://api.github.com/users/Badya/following{/other_user}","gists_url":"https://api.github.com/users/Badya/gists{/gist_id}","starred_url":"https://api.github.com/users/Badya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Badya/subscriptions","organizations_url":"https://api.github.com/users/Badya/orgs","repos_url":"https://api.github.com/users/Badya/repos","events_url":"https://api.github.com/users/Badya/events{/privacy}","received_events_url":"https://api.github.com/users/Badya/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/pulls/3/commits","review_comments_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/pulls/3/comments","review_comment_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/pulls/comments{/number}","comments_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/issues/3/comments","statuses_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/statuses/a9f48cdff47b285f89bfbab1286a97590495a35b","head":{"label":"Meganster:RK2","ref":"RK2","sha":"a9f48cdff47b285f89bfbab1286a97590495a35b","user":{"login":"Meganster","id":20360999,"avatar_url":"https://avatars0.githubusercontent.com/u/20360999?v=4","gravatar_id":"","url":"https://api.github.com/users/Meganster","html_url":"https://github.com/Meganster","followers_url":"https://api.github.com/users/Meganster/followers","following_url":"https://api.github.com/users/Meganster/following{/other_user}","gists_url":"https://api.github.com/users/Meganster/gists{/gist_id}","starred_url":"https://api.github.com/users/Meganster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meganster/subscriptions","organizations_url":"https://api.github.com/users/Meganster/orgs","repos_url":"https://api.github.com/users/Meganster/repos","events_url":"https://api.github.com/users/Meganster/events{/privacy}","received_events_url":"https://api.github.com/users/Meganster/received_events","type":"User","site_admin":false},"repo":{"id":122950059,"name":"Accord-02-2018","full_name":"Meganster/Accord-02-2018","owner":{"login":"Meganster","id":20360999,"avatar_url":"https://avatars0.githubusercontent.com/u/20360999?v=4","gravatar_id":"","url":"https://api.github.com/users/Meganster","html_url":"https://github.com/Meganster","followers_url":"https://api.github.com/users/Meganster/followers","following_url":"https://api.github.com/users/Meganster/following{/other_user}","gists_url":"https://api.github.com/users/Meganster/gists{/gist_id}","starred_url":"https://api.github.com/users/Meganster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meganster/subscriptions","organizations_url":"https://api.github.com/users/Meganster/orgs","repos_url":"https://api.github.com/users/Meganster/repos","events_url":"https://api.github.com/users/Meganster/events{/privacy}","received_events_url":"https://api.github.com/users/Meganster/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Meganster/Accord-02-2018","description":"Java course 02.2018. Project: Accord","fork":true,"url":"https://api.github.com/repos/Meganster/Accord-02-2018","forks_url":"https://api.github.com/repos/Meganster/Accord-02-2018/forks","keys_url":"https://api.github.com/repos/Meganster/Accord-02-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Meganster/Accord-02-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Meganster/Accord-02-2018/teams","hooks_url":"https://api.github.com/repos/Meganster/Accord-02-2018/hooks","issue_events_url":"https://api.github.com/repos/Meganster/Accord-02-2018/issues/events{/number}","events_url":"https://api.github.com/repos/Meganster/Accord-02-2018/events","assignees_url":"https://api.github.com/repos/Meganster/Accord-02-2018/assignees{/user}","branches_url":"https://api.github.com/repos/Meganster/Accord-02-2018/branches{/branch}","tags_url":"https://api.github.com/repos/Meganster/Accord-02-2018/tags","blobs_url":"https://api.github.com/repos/Meganster/Accord-02-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Meganster/Accord-02-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Meganster/Accord-02-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/Meganster/Accord-02-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Meganster/Accord-02-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/Meganster/Accord-02-2018/languages","stargazers_url":"https://api.github.com/repos/Meganster/Accord-02-2018/stargazers","contributors_url":"https://api.github.com/repos/Meganster/Accord-02-2018/contributors","subscribers_url":"https://api.github.com/repos/Meganster/Accord-02-2018/subscribers","subscription_url":"https://api.github.com/repos/Meganster/Accord-02-2018/subscription","commits_url":"https://api.github.com/repos/Meganster/Accord-02-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/Meganster/Accord-02-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/Meganster/Accord-02-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/Meganster/Accord-02-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/Meganster/Accord-02-2018/contents/{+path}","compare_url":"https://api.github.com/repos/Meganster/Accord-02-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Meganster/Accord-02-2018/merges","archive_url":"https://api.github.com/repos/Meganster/Accord-02-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Meganster/Accord-02-2018/downloads","issues_url":"https://api.github.com/repos/Meganster/Accord-02-2018/issues{/number}","pulls_url":"https://api.github.com/repos/Meganster/Accord-02-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/Meganster/Accord-02-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/Meganster/Accord-02-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Meganster/Accord-02-2018/labels{/name}","releases_url":"https://api.github.com/repos/Meganster/Accord-02-2018/releases{/id}","deployments_url":"https://api.github.com/repos/Meganster/Accord-02-2018/deployments","created_at":"2018-02-26T10:00:23Z","updated_at":"2018-04-07T13:58:44Z","pushed_at":"2018-04-07T14:12:21Z","git_url":"git://github.com/Meganster/Accord-02-2018.git","ssh_url":"git@github.com:Meganster/Accord-02-2018.git","clone_url":"https://github.com/Meganster/Accord-02-2018.git","svn_url":"https://github.com/Meganster/Accord-02-2018","homepage":null,"size":342,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"java-park-mail-ru:master","ref":"master","sha":"9ff2298b748f6acc9a3f33b176e53e5083638319","user":{"login":"java-park-mail-ru","id":17194939,"avatar_url":"https://avatars3.githubusercontent.com/u/17194939?v=4","gravatar_id":"","url":"https://api.github.com/users/java-park-mail-ru","html_url":"https://github.com/java-park-mail-ru","followers_url":"https://api.github.com/users/java-park-mail-ru/followers","following_url":"https://api.github.com/users/java-park-mail-ru/following{/other_user}","gists_url":"https://api.github.com/users/java-park-mail-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/java-park-mail-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/java-park-mail-ru/subscriptions","organizations_url":"https://api.github.com/users/java-park-mail-ru/orgs","repos_url":"https://api.github.com/users/java-park-mail-ru/repos","events_url":"https://api.github.com/users/java-park-mail-ru/events{/privacy}","received_events_url":"https://api.github.com/users/java-park-mail-ru/received_events","type":"Organization","site_admin":false},"repo":{"id":121883125,"name":"Accord-02-2018","full_name":"java-park-mail-ru/Accord-02-2018","owner":{"login":"java-park-mail-ru","id":17194939,"avatar_url":"https://avatars3.githubusercontent.com/u/17194939?v=4","gravatar_id":"","url":"https://api.github.com/users/java-park-mail-ru","html_url":"https://github.com/java-park-mail-ru","followers_url":"https://api.github.com/users/java-park-mail-ru/followers","following_url":"https://api.github.com/users/java-park-mail-ru/following{/other_user}","gists_url":"https://api.github.com/users/java-park-mail-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/java-park-mail-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/java-park-mail-ru/subscriptions","organizations_url":"https://api.github.com/users/java-park-mail-ru/orgs","repos_url":"https://api.github.com/users/java-park-mail-ru/repos","events_url":"https://api.github.com/users/java-park-mail-ru/events{/privacy}","received_events_url":"https://api.github.com/users/java-park-mail-ru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/java-park-mail-ru/Accord-02-2018","description":"Java course 02.2018. Project: Accord","fork":false,"url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018","forks_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/forks","keys_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/teams","hooks_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/hooks","issue_events_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/issues/events{/number}","events_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/events","assignees_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/assignees{/user}","branches_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/branches{/branch}","tags_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/tags","blobs_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/languages","stargazers_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/stargazers","contributors_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/contributors","subscribers_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/subscribers","subscription_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/subscription","commits_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/contents/{+path}","compare_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/merges","archive_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/downloads","issues_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/issues{/number}","pulls_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/labels{/name}","releases_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/releases{/id}","deployments_url":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/deployments","created_at":"2018-02-17T18:57:31Z","updated_at":"2018-04-04T21:01:11Z","pushed_at":"2018-04-06T13:36:58Z","git_url":"git://github.com/java-park-mail-ru/Accord-02-2018.git","ssh_url":"git@github.com:java-park-mail-ru/Accord-02-2018.git","clone_url":"https://github.com/java-park-mail-ru/Accord-02-2018.git","svn_url":"https://github.com/java-park-mail-ru/Accord-02-2018","homepage":null,"size":155,"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":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/pulls/3"},"html":{"href":"https://github.com/java-park-mail-ru/Accord-02-2018/pull/3"},"issue":{"href":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/issues/3"},"comments":{"href":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/java-park-mail-ru/Accord-02-2018/statuses/a9f48cdff47b285f89bfbab1286a97590495a35b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Badya"}}