{"action":"created","comment":{"url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/pulls/comments/191092250","pull_request_review_id":123599931,"id":191092250,"diff_hunk":"@@ -199,15 +206,88 @@ public void testDoPost_CleansHtmlContent() throws IOException, ServletException\n     Mockito.when(mockConversationStore.getConversationWithTitle(\"test_conversation\"))\n         .thenReturn(fakeConversation);\n \n-    Mockito.when(mockRequest.getParameter(\"message\"))\n-        .thenReturn(\"Contains <b>html</b> and <script>JavaScript</script> content.\");\n+    String message = \"Contains <b>html</b> and <script>JavaScript</script> content.\";\n+    String cleanMessage = \"Contains html and  content.\";\n+\n+    Mockito.when(mockRequest.getParameter(\"message\")).thenReturn(message);\n+\n+    Mockito.when(mockTextProcessor.process(cleanMessage)).thenReturn(cleanMessage);\n+\n+    chatServlet.doPost(mockRequest, mockResponse);\n+\n+    ArgumentCaptor<Message> messageArgumentCaptor = ArgumentCaptor.forClass(Message.class);\n+    Mockito.verify(mockMessageStore).addMessage(messageArgumentCaptor.capture());","path":"src/test/java/codeu/controller/ChatServletTest.java","position":51,"original_position":51,"commit_id":"78a25cffb9cfa0852a7566a4a01bf7b48a418435","original_commit_id":"78a25cffb9cfa0852a7566a4a01bf7b48a418435","user":{"login":"amejia98","id":6145106,"avatar_url":"https://avatars2.githubusercontent.com/u/6145106?v=4","gravatar_id":"","url":"https://api.github.com/users/amejia98","html_url":"https://github.com/amejia98","followers_url":"https://api.github.com/users/amejia98/followers","following_url":"https://api.github.com/users/amejia98/following{/other_user}","gists_url":"https://api.github.com/users/amejia98/gists{/gist_id}","starred_url":"https://api.github.com/users/amejia98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amejia98/subscriptions","organizations_url":"https://api.github.com/users/amejia98/orgs","repos_url":"https://api.github.com/users/amejia98/repos","events_url":"https://api.github.com/users/amejia98/events{/privacy}","received_events_url":"https://api.github.com/users/amejia98/received_events","type":"User","site_admin":false},"body":"Indentation","created_at":"2018-05-28T00:07:17Z","updated_at":"2018-05-28T00:11:51Z","html_url":"https://github.com/RodrigoDLPontes/CodeU-Spring-2018/pull/8#discussion_r191092250","pull_request_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/pulls/8","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/pulls/comments/191092250"},"html":{"href":"https://github.com/RodrigoDLPontes/CodeU-Spring-2018/pull/8#discussion_r191092250"},"pull_request":{"href":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/pulls/8","id":190765852,"html_url":"https://github.com/RodrigoDLPontes/CodeU-Spring-2018/pull/8","diff_url":"https://github.com/RodrigoDLPontes/CodeU-Spring-2018/pull/8.diff","patch_url":"https://github.com/RodrigoDLPontes/CodeU-Spring-2018/pull/8.patch","issue_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/issues/8","number":8,"state":"open","locked":false,"title":"Rodrigo development","user":{"login":"RodrigoDLPontes","id":11012066,"avatar_url":"https://avatars0.githubusercontent.com/u/11012066?v=4","gravatar_id":"","url":"https://api.github.com/users/RodrigoDLPontes","html_url":"https://github.com/RodrigoDLPontes","followers_url":"https://api.github.com/users/RodrigoDLPontes/followers","following_url":"https://api.github.com/users/RodrigoDLPontes/following{/other_user}","gists_url":"https://api.github.com/users/RodrigoDLPontes/gists{/gist_id}","starred_url":"https://api.github.com/users/RodrigoDLPontes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RodrigoDLPontes/subscriptions","organizations_url":"https://api.github.com/users/RodrigoDLPontes/orgs","repos_url":"https://api.github.com/users/RodrigoDLPontes/repos","events_url":"https://api.github.com/users/RodrigoDLPontes/events{/privacy}","received_events_url":"https://api.github.com/users/RodrigoDLPontes/received_events","type":"User","site_admin":false},"body":"- Removed simple parser and implemented [KefirBB](https://github.com/kefirfromperm/kefirbb) parser instead\r\n- Changed workflow to parsing BBCode before storing the message (otherwise every time the conversation page is loaded, messages need to be parsed)\r\n- Fixed ChatServlet's tests and added new ones for testing BBCode parsing","created_at":"2018-05-27T01:13:16Z","updated_at":"2018-05-28T00:11:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0daff45adf6db0b0bd7b8f1f3c27f03680c735fb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/pulls/8/commits","review_comments_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/pulls/8/comments","review_comment_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/issues/8/comments","statuses_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/statuses/78a25cffb9cfa0852a7566a4a01bf7b48a418435","head":{"label":"RodrigoDLPontes:RodrigoDevelopment","ref":"RodrigoDevelopment","sha":"78a25cffb9cfa0852a7566a4a01bf7b48a418435","user":{"login":"RodrigoDLPontes","id":11012066,"avatar_url":"https://avatars0.githubusercontent.com/u/11012066?v=4","gravatar_id":"","url":"https://api.github.com/users/RodrigoDLPontes","html_url":"https://github.com/RodrigoDLPontes","followers_url":"https://api.github.com/users/RodrigoDLPontes/followers","following_url":"https://api.github.com/users/RodrigoDLPontes/following{/other_user}","gists_url":"https://api.github.com/users/RodrigoDLPontes/gists{/gist_id}","starred_url":"https://api.github.com/users/RodrigoDLPontes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RodrigoDLPontes/subscriptions","organizations_url":"https://api.github.com/users/RodrigoDLPontes/orgs","repos_url":"https://api.github.com/users/RodrigoDLPontes/repos","events_url":"https://api.github.com/users/RodrigoDLPontes/events{/privacy}","received_events_url":"https://api.github.com/users/RodrigoDLPontes/received_events","type":"User","site_admin":false},"repo":{"id":132800173,"name":"CodeU-Spring-2018","full_name":"RodrigoDLPontes/CodeU-Spring-2018","owner":{"login":"RodrigoDLPontes","id":11012066,"avatar_url":"https://avatars0.githubusercontent.com/u/11012066?v=4","gravatar_id":"","url":"https://api.github.com/users/RodrigoDLPontes","html_url":"https://github.com/RodrigoDLPontes","followers_url":"https://api.github.com/users/RodrigoDLPontes/followers","following_url":"https://api.github.com/users/RodrigoDLPontes/following{/other_user}","gists_url":"https://api.github.com/users/RodrigoDLPontes/gists{/gist_id}","starred_url":"https://api.github.com/users/RodrigoDLPontes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RodrigoDLPontes/subscriptions","organizations_url":"https://api.github.com/users/RodrigoDLPontes/orgs","repos_url":"https://api.github.com/users/RodrigoDLPontes/repos","events_url":"https://api.github.com/users/RodrigoDLPontes/events{/privacy}","received_events_url":"https://api.github.com/users/RodrigoDLPontes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RodrigoDLPontes/CodeU-Spring-2018","description":"Team 30's CodeU Spring 2018 Repo","fork":false,"url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018","forks_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/forks","keys_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/teams","hooks_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/hooks","issue_events_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/issues/events{/number}","events_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/events","assignees_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/assignees{/user}","branches_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/branches{/branch}","tags_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/tags","blobs_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/languages","stargazers_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/stargazers","contributors_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/contributors","subscribers_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/subscribers","subscription_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/subscription","commits_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/contents/{+path}","compare_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/merges","archive_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/downloads","issues_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/issues{/number}","pulls_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/labels{/name}","releases_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/releases{/id}","deployments_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/deployments","created_at":"2018-05-09T18:52:23Z","updated_at":"2018-05-26T23:25:14Z","pushed_at":"2018-05-27T01:13:16Z","git_url":"git://github.com/RodrigoDLPontes/CodeU-Spring-2018.git","ssh_url":"git@github.com:RodrigoDLPontes/CodeU-Spring-2018.git","clone_url":"https://github.com/RodrigoDLPontes/CodeU-Spring-2018.git","svn_url":"https://github.com/RodrigoDLPontes/CodeU-Spring-2018","homepage":null,"size":125,"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":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"RodrigoDLPontes:master","ref":"master","sha":"754412a87d5d9a53e55dd99b013cac5cf3e9ad5b","user":{"login":"RodrigoDLPontes","id":11012066,"avatar_url":"https://avatars0.githubusercontent.com/u/11012066?v=4","gravatar_id":"","url":"https://api.github.com/users/RodrigoDLPontes","html_url":"https://github.com/RodrigoDLPontes","followers_url":"https://api.github.com/users/RodrigoDLPontes/followers","following_url":"https://api.github.com/users/RodrigoDLPontes/following{/other_user}","gists_url":"https://api.github.com/users/RodrigoDLPontes/gists{/gist_id}","starred_url":"https://api.github.com/users/RodrigoDLPontes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RodrigoDLPontes/subscriptions","organizations_url":"https://api.github.com/users/RodrigoDLPontes/orgs","repos_url":"https://api.github.com/users/RodrigoDLPontes/repos","events_url":"https://api.github.com/users/RodrigoDLPontes/events{/privacy}","received_events_url":"https://api.github.com/users/RodrigoDLPontes/received_events","type":"User","site_admin":false},"repo":{"id":132800173,"name":"CodeU-Spring-2018","full_name":"RodrigoDLPontes/CodeU-Spring-2018","owner":{"login":"RodrigoDLPontes","id":11012066,"avatar_url":"https://avatars0.githubusercontent.com/u/11012066?v=4","gravatar_id":"","url":"https://api.github.com/users/RodrigoDLPontes","html_url":"https://github.com/RodrigoDLPontes","followers_url":"https://api.github.com/users/RodrigoDLPontes/followers","following_url":"https://api.github.com/users/RodrigoDLPontes/following{/other_user}","gists_url":"https://api.github.com/users/RodrigoDLPontes/gists{/gist_id}","starred_url":"https://api.github.com/users/RodrigoDLPontes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RodrigoDLPontes/subscriptions","organizations_url":"https://api.github.com/users/RodrigoDLPontes/orgs","repos_url":"https://api.github.com/users/RodrigoDLPontes/repos","events_url":"https://api.github.com/users/RodrigoDLPontes/events{/privacy}","received_events_url":"https://api.github.com/users/RodrigoDLPontes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RodrigoDLPontes/CodeU-Spring-2018","description":"Team 30's CodeU Spring 2018 Repo","fork":false,"url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018","forks_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/forks","keys_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/teams","hooks_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/hooks","issue_events_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/issues/events{/number}","events_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/events","assignees_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/assignees{/user}","branches_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/branches{/branch}","tags_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/tags","blobs_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/languages","stargazers_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/stargazers","contributors_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/contributors","subscribers_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/subscribers","subscription_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/subscription","commits_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/contents/{+path}","compare_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/merges","archive_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/downloads","issues_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/issues{/number}","pulls_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/labels{/name}","releases_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/releases{/id}","deployments_url":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/deployments","created_at":"2018-05-09T18:52:23Z","updated_at":"2018-05-26T23:25:14Z","pushed_at":"2018-05-27T01:13:16Z","git_url":"git://github.com/RodrigoDLPontes/CodeU-Spring-2018.git","ssh_url":"git@github.com:RodrigoDLPontes/CodeU-Spring-2018.git","clone_url":"https://github.com/RodrigoDLPontes/CodeU-Spring-2018.git","svn_url":"https://github.com/RodrigoDLPontes/CodeU-Spring-2018","homepage":null,"size":125,"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":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/pulls/8"},"html":{"href":"https://github.com/RodrigoDLPontes/CodeU-Spring-2018/pull/8"},"issue":{"href":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/issues/8"},"comments":{"href":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/RodrigoDLPontes/CodeU-Spring-2018/statuses/78a25cffb9cfa0852a7566a4a01bf7b48a418435"}},"author_association":"OWNER"}}
{"actor":{"display_login":"amejia98"}}