{"action":"created","comment":{"url":"https://api.github.com/repos/erioh/movieland/pulls/comments/153333176","pull_request_review_id":79319398,"id":153333176,"diff_hunk":"@@ -260,8 +267,41 @@ public void getMoviesById() throws Exception {\n                 .andExpect(jsonPath(\"reviews[0].text\").value(\"Review text\"))\n                 .andExpect(jsonPath(\"reviews[0].user.id\").value(1))\n                 .andExpect(jsonPath(\"reviews[0].user.nickname\").value(\"User name\"));\n+    }\n \n-\n+    @Test\n+    public void saveMovie() throws Exception {\n+        SaveMovieDto saveMovieDto = MovieDtoGenerator.getMovieForTest();\n+        Movie movie = MovieGenerator.getMovieForTest();\n+        List<Integer> genreIds = new ArrayList<>();\n+        genreIds.add(1);\n+        List<Integer> countryIds = new ArrayList<>();\n+        countryIds.add(2);\n+        saveMovieDto.setCountries(countryIds);\n+        saveMovieDto.setGenres(genreIds);\n+        ObjectMapper mapper = new ObjectMapper();\n+        SaveMovieDto test = mapper.readValue(mapper.writeValueAsString(saveMovieDto), SaveMovieDto.class);\n+        mockMvc.perform(post(\"/movie\")\n+                .contentType(\"application/json;charset=UTF-8\")\n+                .content(mapper.writeValueAsString(saveMovieDto)))\n+                .andExpect(status().isOk());","path":"src/test/java/com/luxoft/sdemenkov/movieland/web/controller/rest/MovieControllerTest.java","position":142,"original_position":142,"commit_id":"84cfcd946bb5f21bf766f0cf80eb990f6e74e8d8","original_commit_id":"84cfcd946bb5f21bf766f0cf80eb990f6e74e8d8","user":{"login":"juliamanunia","id":3238065,"avatar_url":"https://avatars2.githubusercontent.com/u/3238065?v=4","gravatar_id":"","url":"https://api.github.com/users/juliamanunia","html_url":"https://github.com/juliamanunia","followers_url":"https://api.github.com/users/juliamanunia/followers","following_url":"https://api.github.com/users/juliamanunia/following{/other_user}","gists_url":"https://api.github.com/users/juliamanunia/gists{/gist_id}","starred_url":"https://api.github.com/users/juliamanunia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliamanunia/subscriptions","organizations_url":"https://api.github.com/users/juliamanunia/orgs","repos_url":"https://api.github.com/users/juliamanunia/repos","events_url":"https://api.github.com/users/juliamanunia/events{/privacy}","received_events_url":"https://api.github.com/users/juliamanunia/received_events","type":"User","site_admin":false},"body":"you check status only there, why you don't check the content of response?","created_at":"2017-11-27T21:46:24Z","updated_at":"2017-11-27T21:48:39Z","html_url":"https://github.com/erioh/movieland/pull/5#discussion_r153333176","pull_request_url":"https://api.github.com/repos/erioh/movieland/pulls/5","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/erioh/movieland/pulls/comments/153333176"},"html":{"href":"https://github.com/erioh/movieland/pull/5#discussion_r153333176"},"pull_request":{"href":"https://api.github.com/repos/erioh/movieland/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/erioh/movieland/pulls/5","id":154675193,"html_url":"https://github.com/erioh/movieland/pull/5","diff_url":"https://github.com/erioh/movieland/pull/5.diff","patch_url":"https://github.com/erioh/movieland/pull/5.patch","issue_url":"https://api.github.com/repos/erioh/movieland/issues/5","number":5,"state":"open","locked":false,"title":"B 10 add edit movie","user":{"login":"erioh","id":19279066,"avatar_url":"https://avatars0.githubusercontent.com/u/19279066?v=4","gravatar_id":"","url":"https://api.github.com/users/erioh","html_url":"https://github.com/erioh","followers_url":"https://api.github.com/users/erioh/followers","following_url":"https://api.github.com/users/erioh/following{/other_user}","gists_url":"https://api.github.com/users/erioh/gists{/gist_id}","starred_url":"https://api.github.com/users/erioh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erioh/subscriptions","organizations_url":"https://api.github.com/users/erioh/orgs","repos_url":"https://api.github.com/users/erioh/repos","events_url":"https://api.github.com/users/erioh/events{/privacy}","received_events_url":"https://api.github.com/users/erioh/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-26T11:38:54Z","updated_at":"2017-11-27T21:48:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57154bae26b585a1af67c4304dbfcb4c880bb457","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/erioh/movieland/pulls/5/commits","review_comments_url":"https://api.github.com/repos/erioh/movieland/pulls/5/comments","review_comment_url":"https://api.github.com/repos/erioh/movieland/pulls/comments{/number}","comments_url":"https://api.github.com/repos/erioh/movieland/issues/5/comments","statuses_url":"https://api.github.com/repos/erioh/movieland/statuses/84cfcd946bb5f21bf766f0cf80eb990f6e74e8d8","head":{"label":"erioh:b-10_Add_edit_movie","ref":"b-10_Add_edit_movie","sha":"84cfcd946bb5f21bf766f0cf80eb990f6e74e8d8","user":{"login":"erioh","id":19279066,"avatar_url":"https://avatars0.githubusercontent.com/u/19279066?v=4","gravatar_id":"","url":"https://api.github.com/users/erioh","html_url":"https://github.com/erioh","followers_url":"https://api.github.com/users/erioh/followers","following_url":"https://api.github.com/users/erioh/following{/other_user}","gists_url":"https://api.github.com/users/erioh/gists{/gist_id}","starred_url":"https://api.github.com/users/erioh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erioh/subscriptions","organizations_url":"https://api.github.com/users/erioh/orgs","repos_url":"https://api.github.com/users/erioh/repos","events_url":"https://api.github.com/users/erioh/events{/privacy}","received_events_url":"https://api.github.com/users/erioh/received_events","type":"User","site_admin":false},"repo":{"id":108631033,"name":"movieland","full_name":"erioh/movieland","owner":{"login":"erioh","id":19279066,"avatar_url":"https://avatars0.githubusercontent.com/u/19279066?v=4","gravatar_id":"","url":"https://api.github.com/users/erioh","html_url":"https://github.com/erioh","followers_url":"https://api.github.com/users/erioh/followers","following_url":"https://api.github.com/users/erioh/following{/other_user}","gists_url":"https://api.github.com/users/erioh/gists{/gist_id}","starred_url":"https://api.github.com/users/erioh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erioh/subscriptions","organizations_url":"https://api.github.com/users/erioh/orgs","repos_url":"https://api.github.com/users/erioh/repos","events_url":"https://api.github.com/users/erioh/events{/privacy}","received_events_url":"https://api.github.com/users/erioh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erioh/movieland","description":"Some description. Whatever","fork":false,"url":"https://api.github.com/repos/erioh/movieland","forks_url":"https://api.github.com/repos/erioh/movieland/forks","keys_url":"https://api.github.com/repos/erioh/movieland/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erioh/movieland/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erioh/movieland/teams","hooks_url":"https://api.github.com/repos/erioh/movieland/hooks","issue_events_url":"https://api.github.com/repos/erioh/movieland/issues/events{/number}","events_url":"https://api.github.com/repos/erioh/movieland/events","assignees_url":"https://api.github.com/repos/erioh/movieland/assignees{/user}","branches_url":"https://api.github.com/repos/erioh/movieland/branches{/branch}","tags_url":"https://api.github.com/repos/erioh/movieland/tags","blobs_url":"https://api.github.com/repos/erioh/movieland/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erioh/movieland/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erioh/movieland/git/refs{/sha}","trees_url":"https://api.github.com/repos/erioh/movieland/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erioh/movieland/statuses/{sha}","languages_url":"https://api.github.com/repos/erioh/movieland/languages","stargazers_url":"https://api.github.com/repos/erioh/movieland/stargazers","contributors_url":"https://api.github.com/repos/erioh/movieland/contributors","subscribers_url":"https://api.github.com/repos/erioh/movieland/subscribers","subscription_url":"https://api.github.com/repos/erioh/movieland/subscription","commits_url":"https://api.github.com/repos/erioh/movieland/commits{/sha}","git_commits_url":"https://api.github.com/repos/erioh/movieland/git/commits{/sha}","comments_url":"https://api.github.com/repos/erioh/movieland/comments{/number}","issue_comment_url":"https://api.github.com/repos/erioh/movieland/issues/comments{/number}","contents_url":"https://api.github.com/repos/erioh/movieland/contents/{+path}","compare_url":"https://api.github.com/repos/erioh/movieland/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erioh/movieland/merges","archive_url":"https://api.github.com/repos/erioh/movieland/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erioh/movieland/downloads","issues_url":"https://api.github.com/repos/erioh/movieland/issues{/number}","pulls_url":"https://api.github.com/repos/erioh/movieland/pulls{/number}","milestones_url":"https://api.github.com/repos/erioh/movieland/milestones{/number}","notifications_url":"https://api.github.com/repos/erioh/movieland/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erioh/movieland/labels{/name}","releases_url":"https://api.github.com/repos/erioh/movieland/releases{/id}","deployments_url":"https://api.github.com/repos/erioh/movieland/deployments","created_at":"2017-10-28T08:02:10Z","updated_at":"2017-11-01T08:39:29Z","pushed_at":"2017-11-27T21:00:09Z","git_url":"git://github.com/erioh/movieland.git","ssh_url":"git@github.com:erioh/movieland.git","clone_url":"https://github.com/erioh/movieland.git","svn_url":"https://github.com/erioh/movieland","homepage":null,"size":388,"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":0,"mirror_url":null,"archived":false,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"erioh:master","ref":"master","sha":"911b26ebe545430119f6022c14eafd9e82eca3f5","user":{"login":"erioh","id":19279066,"avatar_url":"https://avatars0.githubusercontent.com/u/19279066?v=4","gravatar_id":"","url":"https://api.github.com/users/erioh","html_url":"https://github.com/erioh","followers_url":"https://api.github.com/users/erioh/followers","following_url":"https://api.github.com/users/erioh/following{/other_user}","gists_url":"https://api.github.com/users/erioh/gists{/gist_id}","starred_url":"https://api.github.com/users/erioh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erioh/subscriptions","organizations_url":"https://api.github.com/users/erioh/orgs","repos_url":"https://api.github.com/users/erioh/repos","events_url":"https://api.github.com/users/erioh/events{/privacy}","received_events_url":"https://api.github.com/users/erioh/received_events","type":"User","site_admin":false},"repo":{"id":108631033,"name":"movieland","full_name":"erioh/movieland","owner":{"login":"erioh","id":19279066,"avatar_url":"https://avatars0.githubusercontent.com/u/19279066?v=4","gravatar_id":"","url":"https://api.github.com/users/erioh","html_url":"https://github.com/erioh","followers_url":"https://api.github.com/users/erioh/followers","following_url":"https://api.github.com/users/erioh/following{/other_user}","gists_url":"https://api.github.com/users/erioh/gists{/gist_id}","starred_url":"https://api.github.com/users/erioh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erioh/subscriptions","organizations_url":"https://api.github.com/users/erioh/orgs","repos_url":"https://api.github.com/users/erioh/repos","events_url":"https://api.github.com/users/erioh/events{/privacy}","received_events_url":"https://api.github.com/users/erioh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erioh/movieland","description":"Some description. Whatever","fork":false,"url":"https://api.github.com/repos/erioh/movieland","forks_url":"https://api.github.com/repos/erioh/movieland/forks","keys_url":"https://api.github.com/repos/erioh/movieland/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erioh/movieland/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erioh/movieland/teams","hooks_url":"https://api.github.com/repos/erioh/movieland/hooks","issue_events_url":"https://api.github.com/repos/erioh/movieland/issues/events{/number}","events_url":"https://api.github.com/repos/erioh/movieland/events","assignees_url":"https://api.github.com/repos/erioh/movieland/assignees{/user}","branches_url":"https://api.github.com/repos/erioh/movieland/branches{/branch}","tags_url":"https://api.github.com/repos/erioh/movieland/tags","blobs_url":"https://api.github.com/repos/erioh/movieland/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erioh/movieland/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erioh/movieland/git/refs{/sha}","trees_url":"https://api.github.com/repos/erioh/movieland/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erioh/movieland/statuses/{sha}","languages_url":"https://api.github.com/repos/erioh/movieland/languages","stargazers_url":"https://api.github.com/repos/erioh/movieland/stargazers","contributors_url":"https://api.github.com/repos/erioh/movieland/contributors","subscribers_url":"https://api.github.com/repos/erioh/movieland/subscribers","subscription_url":"https://api.github.com/repos/erioh/movieland/subscription","commits_url":"https://api.github.com/repos/erioh/movieland/commits{/sha}","git_commits_url":"https://api.github.com/repos/erioh/movieland/git/commits{/sha}","comments_url":"https://api.github.com/repos/erioh/movieland/comments{/number}","issue_comment_url":"https://api.github.com/repos/erioh/movieland/issues/comments{/number}","contents_url":"https://api.github.com/repos/erioh/movieland/contents/{+path}","compare_url":"https://api.github.com/repos/erioh/movieland/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erioh/movieland/merges","archive_url":"https://api.github.com/repos/erioh/movieland/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erioh/movieland/downloads","issues_url":"https://api.github.com/repos/erioh/movieland/issues{/number}","pulls_url":"https://api.github.com/repos/erioh/movieland/pulls{/number}","milestones_url":"https://api.github.com/repos/erioh/movieland/milestones{/number}","notifications_url":"https://api.github.com/repos/erioh/movieland/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erioh/movieland/labels{/name}","releases_url":"https://api.github.com/repos/erioh/movieland/releases{/id}","deployments_url":"https://api.github.com/repos/erioh/movieland/deployments","created_at":"2017-10-28T08:02:10Z","updated_at":"2017-11-01T08:39:29Z","pushed_at":"2017-11-27T21:00:09Z","git_url":"git://github.com/erioh/movieland.git","ssh_url":"git@github.com:erioh/movieland.git","clone_url":"https://github.com/erioh/movieland.git","svn_url":"https://github.com/erioh/movieland","homepage":null,"size":388,"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":0,"mirror_url":null,"archived":false,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/erioh/movieland/pulls/5"},"html":{"href":"https://github.com/erioh/movieland/pull/5"},"issue":{"href":"https://api.github.com/repos/erioh/movieland/issues/5"},"comments":{"href":"https://api.github.com/repos/erioh/movieland/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/erioh/movieland/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/erioh/movieland/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/erioh/movieland/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/erioh/movieland/statuses/84cfcd946bb5f21bf766f0cf80eb990f6e74e8d8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"juliamanunia"}}