{"action":"created","comment":{"url":"https://api.github.com/repos/PaymentSystem/Application/pulls/comments/232561585","pull_request_review_id":173781822,"id":232561585,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjU2MTU4NQ==","diff_hunk":"@@ -0,0 +1,122 @@\n+package com.epam.lab.paymentsystem.controller;\n+\n+import com.epam.lab.paymentsystem.configuration.DispatcherConfiguration;\n+import com.epam.lab.paymentsystem.configuration.H2TestConfiguration;\n+import com.epam.lab.paymentsystem.entities.Account;\n+import com.epam.lab.paymentsystem.entities.User;\n+import com.epam.lab.paymentsystem.repository.AccountRepository;\n+import com.epam.lab.paymentsystem.repository.CardRepository;\n+import com.epam.lab.paymentsystem.repository.UserRepository;\n+import com.epam.lab.paymentsystem.service.UserService;\n+import com.epam.lab.paymentsystem.util.H2TestDataInitializer;\n+import org.junit.jupiter.api.BeforeEach;\n+import org.junit.jupiter.api.Test;\n+import org.junit.jupiter.api.extension.ExtendWith;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.security.core.Authentication;\n+import org.springframework.security.core.context.SecurityContext;\n+import org.springframework.security.core.context.SecurityContextHolder;\n+import org.springframework.test.context.ContextConfiguration;\n+import org.springframework.test.context.junit.jupiter.SpringExtension;\n+import org.springframework.test.context.web.WebAppConfiguration;\n+import org.springframework.test.web.servlet.MockMvc;\n+import org.springframework.test.web.servlet.setup.MockMvcBuilders;\n+import org.springframework.web.context.WebApplicationContext;\n+\n+import static org.junit.jupiter.api.Assertions.assertEquals;\n+import static org.mockito.Mockito.mock;\n+import static org.mockito.Mockito.when;\n+import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;\n+import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;\n+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.model;\n+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;\n+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view;\n+\n+@ExtendWith(SpringExtension.class)\n+@ContextConfiguration(classes = {\n+    DispatcherConfiguration.class,\n+    H2TestConfiguration.class\n+})\n+@WebAppConfiguration\n+public class CardControllerTest {","path":"src/test/java/com/epam/lab/paymentsystem/controller/CardControllerTest.java","position":41,"original_position":41,"commit_id":"f3e90f25ee054f093b44d74949c3ef3be4470c04","original_commit_id":"f3e90f25ee054f093b44d74949c3ef3be4470c04","user":{"login":"Meisssshu","id":43749789,"node_id":"MDQ6VXNlcjQzNzQ5Nzg5","avatar_url":"https://avatars2.githubusercontent.com/u/43749789?v=4","gravatar_id":"","url":"https://api.github.com/users/Meisssshu","html_url":"https://github.com/Meisssshu","followers_url":"https://api.github.com/users/Meisssshu/followers","following_url":"https://api.github.com/users/Meisssshu/following{/other_user}","gists_url":"https://api.github.com/users/Meisssshu/gists{/gist_id}","starred_url":"https://api.github.com/users/Meisssshu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Meisssshu/subscriptions","organizations_url":"https://api.github.com/users/Meisssshu/orgs","repos_url":"https://api.github.com/users/Meisssshu/repos","events_url":"https://api.github.com/users/Meisssshu/events{/privacy}","received_events_url":"https://api.github.com/users/Meisssshu/received_events","type":"User","site_admin":false},"body":"Remarks are the same as in `AccountControllerTest`","created_at":"2018-11-12T08:04:40Z","updated_at":"2018-11-12T08:09:01Z","html_url":"https://github.com/PaymentSystem/Application/pull/37#discussion_r232561585","pull_request_url":"https://api.github.com/repos/PaymentSystem/Application/pulls/37","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/PaymentSystem/Application/pulls/comments/232561585"},"html":{"href":"https://github.com/PaymentSystem/Application/pull/37#discussion_r232561585"},"pull_request":{"href":"https://api.github.com/repos/PaymentSystem/Application/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/PaymentSystem/Application/pulls/37","id":229984618,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5OTg0NjE4","html_url":"https://github.com/PaymentSystem/Application/pull/37","diff_url":"https://github.com/PaymentSystem/Application/pull/37.diff","patch_url":"https://github.com/PaymentSystem/Application/pull/37.patch","issue_url":"https://api.github.com/repos/PaymentSystem/Application/issues/37","number":37,"state":"open","locked":false,"title":"Integration tests","user":{"login":"DeryckSPBU","id":6682745,"node_id":"MDQ6VXNlcjY2ODI3NDU=","avatar_url":"https://avatars2.githubusercontent.com/u/6682745?v=4","gravatar_id":"","url":"https://api.github.com/users/DeryckSPBU","html_url":"https://github.com/DeryckSPBU","followers_url":"https://api.github.com/users/DeryckSPBU/followers","following_url":"https://api.github.com/users/DeryckSPBU/following{/other_user}","gists_url":"https://api.github.com/users/DeryckSPBU/gists{/gist_id}","starred_url":"https://api.github.com/users/DeryckSPBU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeryckSPBU/subscriptions","organizations_url":"https://api.github.com/users/DeryckSPBU/orgs","repos_url":"https://api.github.com/users/DeryckSPBU/repos","events_url":"https://api.github.com/users/DeryckSPBU/events{/privacy}","received_events_url":"https://api.github.com/users/DeryckSPBU/received_events","type":"User","site_admin":false},"body":"Added integration tests for controllers","created_at":"2018-11-11T22:55:27Z","updated_at":"2018-11-12T08:09:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c7e9626338e37ec0d46ceaaf668d090e890c29f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PaymentSystem/Application/pulls/37/commits","review_comments_url":"https://api.github.com/repos/PaymentSystem/Application/pulls/37/comments","review_comment_url":"https://api.github.com/repos/PaymentSystem/Application/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PaymentSystem/Application/issues/37/comments","statuses_url":"https://api.github.com/repos/PaymentSystem/Application/statuses/f3e90f25ee054f093b44d74949c3ef3be4470c04","head":{"label":"PaymentSystem:embeddedDb","ref":"embeddedDb","sha":"f3e90f25ee054f093b44d74949c3ef3be4470c04","user":{"login":"PaymentSystem","id":43988417,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzOTg4NDE3","avatar_url":"https://avatars3.githubusercontent.com/u/43988417?v=4","gravatar_id":"","url":"https://api.github.com/users/PaymentSystem","html_url":"https://github.com/PaymentSystem","followers_url":"https://api.github.com/users/PaymentSystem/followers","following_url":"https://api.github.com/users/PaymentSystem/following{/other_user}","gists_url":"https://api.github.com/users/PaymentSystem/gists{/gist_id}","starred_url":"https://api.github.com/users/PaymentSystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaymentSystem/subscriptions","organizations_url":"https://api.github.com/users/PaymentSystem/orgs","repos_url":"https://api.github.com/users/PaymentSystem/repos","events_url":"https://api.github.com/users/PaymentSystem/events{/privacy}","received_events_url":"https://api.github.com/users/PaymentSystem/received_events","type":"Organization","site_admin":false},"repo":{"id":152229255,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyMjkyNTU=","name":"Application","full_name":"PaymentSystem/Application","private":false,"owner":{"login":"PaymentSystem","id":43988417,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzOTg4NDE3","avatar_url":"https://avatars3.githubusercontent.com/u/43988417?v=4","gravatar_id":"","url":"https://api.github.com/users/PaymentSystem","html_url":"https://github.com/PaymentSystem","followers_url":"https://api.github.com/users/PaymentSystem/followers","following_url":"https://api.github.com/users/PaymentSystem/following{/other_user}","gists_url":"https://api.github.com/users/PaymentSystem/gists{/gist_id}","starred_url":"https://api.github.com/users/PaymentSystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaymentSystem/subscriptions","organizations_url":"https://api.github.com/users/PaymentSystem/orgs","repos_url":"https://api.github.com/users/PaymentSystem/repos","events_url":"https://api.github.com/users/PaymentSystem/events{/privacy}","received_events_url":"https://api.github.com/users/PaymentSystem/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PaymentSystem/Application","description":null,"fork":false,"url":"https://api.github.com/repos/PaymentSystem/Application","forks_url":"https://api.github.com/repos/PaymentSystem/Application/forks","keys_url":"https://api.github.com/repos/PaymentSystem/Application/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaymentSystem/Application/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaymentSystem/Application/teams","hooks_url":"https://api.github.com/repos/PaymentSystem/Application/hooks","issue_events_url":"https://api.github.com/repos/PaymentSystem/Application/issues/events{/number}","events_url":"https://api.github.com/repos/PaymentSystem/Application/events","assignees_url":"https://api.github.com/repos/PaymentSystem/Application/assignees{/user}","branches_url":"https://api.github.com/repos/PaymentSystem/Application/branches{/branch}","tags_url":"https://api.github.com/repos/PaymentSystem/Application/tags","blobs_url":"https://api.github.com/repos/PaymentSystem/Application/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaymentSystem/Application/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaymentSystem/Application/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaymentSystem/Application/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaymentSystem/Application/statuses/{sha}","languages_url":"https://api.github.com/repos/PaymentSystem/Application/languages","stargazers_url":"https://api.github.com/repos/PaymentSystem/Application/stargazers","contributors_url":"https://api.github.com/repos/PaymentSystem/Application/contributors","subscribers_url":"https://api.github.com/repos/PaymentSystem/Application/subscribers","subscription_url":"https://api.github.com/repos/PaymentSystem/Application/subscription","commits_url":"https://api.github.com/repos/PaymentSystem/Application/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaymentSystem/Application/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaymentSystem/Application/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaymentSystem/Application/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaymentSystem/Application/contents/{+path}","compare_url":"https://api.github.com/repos/PaymentSystem/Application/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaymentSystem/Application/merges","archive_url":"https://api.github.com/repos/PaymentSystem/Application/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaymentSystem/Application/downloads","issues_url":"https://api.github.com/repos/PaymentSystem/Application/issues{/number}","pulls_url":"https://api.github.com/repos/PaymentSystem/Application/pulls{/number}","milestones_url":"https://api.github.com/repos/PaymentSystem/Application/milestones{/number}","notifications_url":"https://api.github.com/repos/PaymentSystem/Application/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaymentSystem/Application/labels{/name}","releases_url":"https://api.github.com/repos/PaymentSystem/Application/releases{/id}","deployments_url":"https://api.github.com/repos/PaymentSystem/Application/deployments","created_at":"2018-10-09T10:04:07Z","updated_at":"2018-10-23T09:18:50Z","pushed_at":"2018-11-12T06:08:13Z","git_url":"git://github.com/PaymentSystem/Application.git","ssh_url":"git@github.com:PaymentSystem/Application.git","clone_url":"https://github.com/PaymentSystem/Application.git","svn_url":"https://github.com/PaymentSystem/Application","homepage":null,"size":332,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"PaymentSystem:dev","ref":"dev","sha":"a0bbf8ea0f5c9eacde6a09f95cbadd35518e5f31","user":{"login":"PaymentSystem","id":43988417,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzOTg4NDE3","avatar_url":"https://avatars3.githubusercontent.com/u/43988417?v=4","gravatar_id":"","url":"https://api.github.com/users/PaymentSystem","html_url":"https://github.com/PaymentSystem","followers_url":"https://api.github.com/users/PaymentSystem/followers","following_url":"https://api.github.com/users/PaymentSystem/following{/other_user}","gists_url":"https://api.github.com/users/PaymentSystem/gists{/gist_id}","starred_url":"https://api.github.com/users/PaymentSystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaymentSystem/subscriptions","organizations_url":"https://api.github.com/users/PaymentSystem/orgs","repos_url":"https://api.github.com/users/PaymentSystem/repos","events_url":"https://api.github.com/users/PaymentSystem/events{/privacy}","received_events_url":"https://api.github.com/users/PaymentSystem/received_events","type":"Organization","site_admin":false},"repo":{"id":152229255,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyMjkyNTU=","name":"Application","full_name":"PaymentSystem/Application","private":false,"owner":{"login":"PaymentSystem","id":43988417,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzOTg4NDE3","avatar_url":"https://avatars3.githubusercontent.com/u/43988417?v=4","gravatar_id":"","url":"https://api.github.com/users/PaymentSystem","html_url":"https://github.com/PaymentSystem","followers_url":"https://api.github.com/users/PaymentSystem/followers","following_url":"https://api.github.com/users/PaymentSystem/following{/other_user}","gists_url":"https://api.github.com/users/PaymentSystem/gists{/gist_id}","starred_url":"https://api.github.com/users/PaymentSystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaymentSystem/subscriptions","organizations_url":"https://api.github.com/users/PaymentSystem/orgs","repos_url":"https://api.github.com/users/PaymentSystem/repos","events_url":"https://api.github.com/users/PaymentSystem/events{/privacy}","received_events_url":"https://api.github.com/users/PaymentSystem/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PaymentSystem/Application","description":null,"fork":false,"url":"https://api.github.com/repos/PaymentSystem/Application","forks_url":"https://api.github.com/repos/PaymentSystem/Application/forks","keys_url":"https://api.github.com/repos/PaymentSystem/Application/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaymentSystem/Application/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaymentSystem/Application/teams","hooks_url":"https://api.github.com/repos/PaymentSystem/Application/hooks","issue_events_url":"https://api.github.com/repos/PaymentSystem/Application/issues/events{/number}","events_url":"https://api.github.com/repos/PaymentSystem/Application/events","assignees_url":"https://api.github.com/repos/PaymentSystem/Application/assignees{/user}","branches_url":"https://api.github.com/repos/PaymentSystem/Application/branches{/branch}","tags_url":"https://api.github.com/repos/PaymentSystem/Application/tags","blobs_url":"https://api.github.com/repos/PaymentSystem/Application/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaymentSystem/Application/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaymentSystem/Application/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaymentSystem/Application/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaymentSystem/Application/statuses/{sha}","languages_url":"https://api.github.com/repos/PaymentSystem/Application/languages","stargazers_url":"https://api.github.com/repos/PaymentSystem/Application/stargazers","contributors_url":"https://api.github.com/repos/PaymentSystem/Application/contributors","subscribers_url":"https://api.github.com/repos/PaymentSystem/Application/subscribers","subscription_url":"https://api.github.com/repos/PaymentSystem/Application/subscription","commits_url":"https://api.github.com/repos/PaymentSystem/Application/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaymentSystem/Application/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaymentSystem/Application/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaymentSystem/Application/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaymentSystem/Application/contents/{+path}","compare_url":"https://api.github.com/repos/PaymentSystem/Application/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaymentSystem/Application/merges","archive_url":"https://api.github.com/repos/PaymentSystem/Application/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaymentSystem/Application/downloads","issues_url":"https://api.github.com/repos/PaymentSystem/Application/issues{/number}","pulls_url":"https://api.github.com/repos/PaymentSystem/Application/pulls{/number}","milestones_url":"https://api.github.com/repos/PaymentSystem/Application/milestones{/number}","notifications_url":"https://api.github.com/repos/PaymentSystem/Application/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaymentSystem/Application/labels{/name}","releases_url":"https://api.github.com/repos/PaymentSystem/Application/releases{/id}","deployments_url":"https://api.github.com/repos/PaymentSystem/Application/deployments","created_at":"2018-10-09T10:04:07Z","updated_at":"2018-10-23T09:18:50Z","pushed_at":"2018-11-12T06:08:13Z","git_url":"git://github.com/PaymentSystem/Application.git","ssh_url":"git@github.com:PaymentSystem/Application.git","clone_url":"https://github.com/PaymentSystem/Application.git","svn_url":"https://github.com/PaymentSystem/Application","homepage":null,"size":332,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PaymentSystem/Application/pulls/37"},"html":{"href":"https://github.com/PaymentSystem/Application/pull/37"},"issue":{"href":"https://api.github.com/repos/PaymentSystem/Application/issues/37"},"comments":{"href":"https://api.github.com/repos/PaymentSystem/Application/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/PaymentSystem/Application/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/PaymentSystem/Application/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PaymentSystem/Application/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/PaymentSystem/Application/statuses/f3e90f25ee054f093b44d74949c3ef3be4470c04"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Meisssshu"}}