{"action":"created","comment":{"url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/pulls/comments/189153322","pull_request_review_id":121277581,"id":189153322,"diff_hunk":"@@ -0,0 +1,75 @@\n+// Copyright 2017 Google Inc.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//    http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+\n+package codeu.controller;\n+\n+import codeu.model.data.Conversation;\n+import codeu.model.data.Message;\n+import codeu.model.data.User;\n+import codeu.model.store.basic.ConversationStore;\n+import codeu.model.store.basic.MessageStore;\n+import codeu.model.store.basic.UserStore;\n+import java.io.IOException;\n+import java.time.Instant;\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.UUID;\n+import javax.servlet.RequestDispatcher;\n+import javax.servlet.ServletException;\n+import javax.servlet.http.HttpServletRequest;\n+import javax.servlet.http.HttpServletResponse;\n+import javax.servlet.http.HttpSession;\n+import org.junit.Assert;\n+import org.junit.Before;\n+import org.junit.Test;\n+import org.mockito.ArgumentCaptor;\n+import org.mockito.Mockito;\n+\n+public class ActivityFeedServletTest {\n+\n+  private ActivityFeedServlet activityServlet;\n+  private HttpServletRequest mockRequest;\n+  private HttpSession mockSession;\n+  private HttpServletResponse mockResponse;\n+  private RequestDispatcher mockRequestDispatcher;\n+\n+  @Before\n+  public void setup() {\n+    activityServlet = new ActivityFeedServlet(); // create new instance of class\n+\n+    mockRequest = Mockito.mock(HttpServletRequest.class);\n+    mockSession = Mockito.mock(HttpSession.class);\n+    Mockito.when(mockRequest.getSession()).thenReturn(mockSession);","path":"src/test/java/codeu/controller/ActivityFeedServletTest.java","position":53,"original_position":53,"commit_id":"52585a0c56cc2c5cbb8bcd51c1c174a52adaebb9","original_commit_id":"52585a0c56cc2c5cbb8bcd51c1c174a52adaebb9","user":{"login":"srjoglekar246","id":2099293,"avatar_url":"https://avatars3.githubusercontent.com/u/2099293?v=4","gravatar_id":"","url":"https://api.github.com/users/srjoglekar246","html_url":"https://github.com/srjoglekar246","followers_url":"https://api.github.com/users/srjoglekar246/followers","following_url":"https://api.github.com/users/srjoglekar246/following{/other_user}","gists_url":"https://api.github.com/users/srjoglekar246/gists{/gist_id}","starred_url":"https://api.github.com/users/srjoglekar246/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srjoglekar246/subscriptions","organizations_url":"https://api.github.com/users/srjoglekar246/orgs","repos_url":"https://api.github.com/users/srjoglekar246/repos","events_url":"https://api.github.com/users/srjoglekar246/events{/privacy}","received_events_url":"https://api.github.com/users/srjoglekar246/received_events","type":"User","site_admin":false},"body":"Could you group together all the initializations in one place, and then make the Mockito calls? That way its easier to follow 1) all initializations & 2) all the mocked behaviors.","created_at":"2018-05-18T03:04:50Z","updated_at":"2018-05-18T03:06:33Z","html_url":"https://github.com/rebeccaruva/CodeU-Spring-2018/pull/4#discussion_r189153322","pull_request_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/pulls/4","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/pulls/comments/189153322"},"html":{"href":"https://github.com/rebeccaruva/CodeU-Spring-2018/pull/4#discussion_r189153322"},"pull_request":{"href":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/pulls/4","id":188641589,"html_url":"https://github.com/rebeccaruva/CodeU-Spring-2018/pull/4","diff_url":"https://github.com/rebeccaruva/CodeU-Spring-2018/pull/4.diff","patch_url":"https://github.com/rebeccaruva/CodeU-Spring-2018/pull/4.patch","issue_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/issues/4","number":4,"state":"open","locked":false,"title":"Finished prototype of activity feed project","user":{"login":"ananda1066","id":16571023,"avatar_url":"https://avatars0.githubusercontent.com/u/16571023?v=4","gravatar_id":"","url":"https://api.github.com/users/ananda1066","html_url":"https://github.com/ananda1066","followers_url":"https://api.github.com/users/ananda1066/followers","following_url":"https://api.github.com/users/ananda1066/following{/other_user}","gists_url":"https://api.github.com/users/ananda1066/gists{/gist_id}","starred_url":"https://api.github.com/users/ananda1066/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ananda1066/subscriptions","organizations_url":"https://api.github.com/users/ananda1066/orgs","repos_url":"https://api.github.com/users/ananda1066/repos","events_url":"https://api.github.com/users/ananda1066/events{/privacy}","received_events_url":"https://api.github.com/users/ananda1066/received_events","type":"User","site_admin":false},"body":"Added ActivityFeedServlet class, ActivityFeed jsp file, changed mapping in web.xml, and edited gitignore to ignore appengine-web.xml to avoid conflicts. ","created_at":"2018-05-17T07:08:31Z","updated_at":"2018-05-18T03:06:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c2ed630b4374f294b7bd976e250d6e39d184dd7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/pulls/4/commits","review_comments_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/pulls/4/comments","review_comment_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/issues/4/comments","statuses_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/statuses/52585a0c56cc2c5cbb8bcd51c1c174a52adaebb9","head":{"label":"rebeccaruva:AlishaDevelopment","ref":"AlishaDevelopment","sha":"52585a0c56cc2c5cbb8bcd51c1c174a52adaebb9","user":{"login":"rebeccaruva","id":20407269,"avatar_url":"https://avatars1.githubusercontent.com/u/20407269?v=4","gravatar_id":"","url":"https://api.github.com/users/rebeccaruva","html_url":"https://github.com/rebeccaruva","followers_url":"https://api.github.com/users/rebeccaruva/followers","following_url":"https://api.github.com/users/rebeccaruva/following{/other_user}","gists_url":"https://api.github.com/users/rebeccaruva/gists{/gist_id}","starred_url":"https://api.github.com/users/rebeccaruva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebeccaruva/subscriptions","organizations_url":"https://api.github.com/users/rebeccaruva/orgs","repos_url":"https://api.github.com/users/rebeccaruva/repos","events_url":"https://api.github.com/users/rebeccaruva/events{/privacy}","received_events_url":"https://api.github.com/users/rebeccaruva/received_events","type":"User","site_admin":false},"repo":{"id":132206795,"name":"CodeU-Spring-2018","full_name":"rebeccaruva/CodeU-Spring-2018","owner":{"login":"rebeccaruva","id":20407269,"avatar_url":"https://avatars1.githubusercontent.com/u/20407269?v=4","gravatar_id":"","url":"https://api.github.com/users/rebeccaruva","html_url":"https://github.com/rebeccaruva","followers_url":"https://api.github.com/users/rebeccaruva/followers","following_url":"https://api.github.com/users/rebeccaruva/following{/other_user}","gists_url":"https://api.github.com/users/rebeccaruva/gists{/gist_id}","starred_url":"https://api.github.com/users/rebeccaruva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebeccaruva/subscriptions","organizations_url":"https://api.github.com/users/rebeccaruva/orgs","repos_url":"https://api.github.com/users/rebeccaruva/repos","events_url":"https://api.github.com/users/rebeccaruva/events{/privacy}","received_events_url":"https://api.github.com/users/rebeccaruva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rebeccaruva/CodeU-Spring-2018","description":null,"fork":false,"url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018","forks_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/forks","keys_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/teams","hooks_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/hooks","issue_events_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/issues/events{/number}","events_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/events","assignees_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/assignees{/user}","branches_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/branches{/branch}","tags_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/tags","blobs_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/languages","stargazers_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/stargazers","contributors_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/contributors","subscribers_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/subscribers","subscription_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/subscription","commits_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/contents/{+path}","compare_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/merges","archive_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/downloads","issues_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/issues{/number}","pulls_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/labels{/name}","releases_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/releases{/id}","deployments_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/deployments","created_at":"2018-05-05T02:17:09Z","updated_at":"2018-05-16T03:19:05Z","pushed_at":"2018-05-17T21:33:26Z","git_url":"git://github.com/rebeccaruva/CodeU-Spring-2018.git","ssh_url":"git@github.com:rebeccaruva/CodeU-Spring-2018.git","clone_url":"https://github.com/rebeccaruva/CodeU-Spring-2018.git","svn_url":"https://github.com/rebeccaruva/CodeU-Spring-2018","homepage":null,"size":107,"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":2,"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":2,"watchers":0,"default_branch":"master"}},"base":{"label":"rebeccaruva:master","ref":"master","sha":"6226b27fadd0722c5668c7a562670ce295879399","user":{"login":"rebeccaruva","id":20407269,"avatar_url":"https://avatars1.githubusercontent.com/u/20407269?v=4","gravatar_id":"","url":"https://api.github.com/users/rebeccaruva","html_url":"https://github.com/rebeccaruva","followers_url":"https://api.github.com/users/rebeccaruva/followers","following_url":"https://api.github.com/users/rebeccaruva/following{/other_user}","gists_url":"https://api.github.com/users/rebeccaruva/gists{/gist_id}","starred_url":"https://api.github.com/users/rebeccaruva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebeccaruva/subscriptions","organizations_url":"https://api.github.com/users/rebeccaruva/orgs","repos_url":"https://api.github.com/users/rebeccaruva/repos","events_url":"https://api.github.com/users/rebeccaruva/events{/privacy}","received_events_url":"https://api.github.com/users/rebeccaruva/received_events","type":"User","site_admin":false},"repo":{"id":132206795,"name":"CodeU-Spring-2018","full_name":"rebeccaruva/CodeU-Spring-2018","owner":{"login":"rebeccaruva","id":20407269,"avatar_url":"https://avatars1.githubusercontent.com/u/20407269?v=4","gravatar_id":"","url":"https://api.github.com/users/rebeccaruva","html_url":"https://github.com/rebeccaruva","followers_url":"https://api.github.com/users/rebeccaruva/followers","following_url":"https://api.github.com/users/rebeccaruva/following{/other_user}","gists_url":"https://api.github.com/users/rebeccaruva/gists{/gist_id}","starred_url":"https://api.github.com/users/rebeccaruva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebeccaruva/subscriptions","organizations_url":"https://api.github.com/users/rebeccaruva/orgs","repos_url":"https://api.github.com/users/rebeccaruva/repos","events_url":"https://api.github.com/users/rebeccaruva/events{/privacy}","received_events_url":"https://api.github.com/users/rebeccaruva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rebeccaruva/CodeU-Spring-2018","description":null,"fork":false,"url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018","forks_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/forks","keys_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/teams","hooks_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/hooks","issue_events_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/issues/events{/number}","events_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/events","assignees_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/assignees{/user}","branches_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/branches{/branch}","tags_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/tags","blobs_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/languages","stargazers_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/stargazers","contributors_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/contributors","subscribers_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/subscribers","subscription_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/subscription","commits_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/contents/{+path}","compare_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/merges","archive_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/downloads","issues_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/issues{/number}","pulls_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/labels{/name}","releases_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/releases{/id}","deployments_url":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/deployments","created_at":"2018-05-05T02:17:09Z","updated_at":"2018-05-16T03:19:05Z","pushed_at":"2018-05-17T21:33:26Z","git_url":"git://github.com/rebeccaruva/CodeU-Spring-2018.git","ssh_url":"git@github.com:rebeccaruva/CodeU-Spring-2018.git","clone_url":"https://github.com/rebeccaruva/CodeU-Spring-2018.git","svn_url":"https://github.com/rebeccaruva/CodeU-Spring-2018","homepage":null,"size":107,"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":2,"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":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/pulls/4"},"html":{"href":"https://github.com/rebeccaruva/CodeU-Spring-2018/pull/4"},"issue":{"href":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/issues/4"},"comments":{"href":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/rebeccaruva/CodeU-Spring-2018/statuses/52585a0c56cc2c5cbb8bcd51c1c174a52adaebb9"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"srjoglekar246"}}