{"action":"created","comment":{"url":"https://api.github.com/repos/google/codeu_project_2018/pulls/comments/185116905","pull_request_review_id":116445079,"id":185116905,"diff_hunk":"@@ -0,0 +1,37 @@\n+package codeu.controller;\n+\n+import java.io.IOException;\n+\n+import javax.servlet.RequestDispatcher;\n+import javax.servlet.ServletException;\n+import javax.servlet.http.HttpServletRequest;\n+import javax.servlet.http.HttpServletResponse;\n+\n+import org.junit.Before;\n+import org.junit.Test;\n+import org.mockito.Mockito;\n+\n+public class RegisterServletTest {\n+\n+  private RegisterServlet registerServlet;\n+  private HttpServletRequest mockRequest;\n+  private HttpServletResponse mockResponse;\n+  private RequestDispatcher mockRequestDispatcher;\n+\n+  @Before\n+  public void setup() throws IOException {\n+    registerServlet = new RegisterServlet();\n+    mockRequest = Mockito.mock(HttpServletRequest.class);\n+    mockResponse = Mockito.mock(HttpServletResponse.class);\n+    mockRequestDispatcher = Mockito.mock(RequestDispatcher.class);\n+    Mockito.when(mockRequest.getRequestDispatcher(\"/WEB-INF/view/register.jsp\"))\n+        .thenReturn(mockRequestDispatcher);\n+  }\n+\n+  @Test\n+  public void testDoGet() throws IOException, ServletException {\n+    registerServlet.doGet(mockRequest, mockResponse);\n+\n+    Mockito.verify(mockRequestDispatcher).forward(mockRequest, mockResponse);\n+  }\n+}","path":"src/test/java/codeu/controller/RegisterServletTest.java","position":37,"original_position":37,"commit_id":"3a5ba578fec1d325c35c12ce8489ece38c1eda21","original_commit_id":"3a5ba578fec1d325c35c12ce8489ece38c1eda21","user":{"login":"wgenemorgan","id":620069,"avatar_url":"https://avatars2.githubusercontent.com/u/620069?v=4","gravatar_id":"","url":"https://api.github.com/users/wgenemorgan","html_url":"https://github.com/wgenemorgan","followers_url":"https://api.github.com/users/wgenemorgan/followers","following_url":"https://api.github.com/users/wgenemorgan/following{/other_user}","gists_url":"https://api.github.com/users/wgenemorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/wgenemorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wgenemorgan/subscriptions","organizations_url":"https://api.github.com/users/wgenemorgan/orgs","repos_url":"https://api.github.com/users/wgenemorgan/repos","events_url":"https://api.github.com/users/wgenemorgan/events{/privacy}","received_events_url":"https://api.github.com/users/wgenemorgan/received_events","type":"User","site_admin":false},"body":"Add blank line at end.","created_at":"2018-04-30T21:32:55Z","updated_at":"2018-04-30T21:32:55Z","html_url":"https://github.com/google/codeu_project_2018/pull/9#discussion_r185116905","pull_request_url":"https://api.github.com/repos/google/codeu_project_2018/pulls/9","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/google/codeu_project_2018/pulls/comments/185116905"},"html":{"href":"https://github.com/google/codeu_project_2018/pull/9#discussion_r185116905"},"pull_request":{"href":"https://api.github.com/repos/google/codeu_project_2018/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/google/codeu_project_2018/pulls/9","id":184863841,"html_url":"https://github.com/google/codeu_project_2018/pull/9","diff_url":"https://github.com/google/codeu_project_2018/pull/9.diff","patch_url":"https://github.com/google/codeu_project_2018/pull/9.patch","issue_url":"https://api.github.com/repos/google/codeu_project_2018/issues/9","number":9,"state":"open","locked":false,"title":"Adding prototype for registration page.","user":{"login":"KevinWorkman","id":6930986,"avatar_url":"https://avatars1.githubusercontent.com/u/6930986?v=4","gravatar_id":"","url":"https://api.github.com/users/KevinWorkman","html_url":"https://github.com/KevinWorkman","followers_url":"https://api.github.com/users/KevinWorkman/followers","following_url":"https://api.github.com/users/KevinWorkman/following{/other_user}","gists_url":"https://api.github.com/users/KevinWorkman/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinWorkman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinWorkman/subscriptions","organizations_url":"https://api.github.com/users/KevinWorkman/orgs","repos_url":"https://api.github.com/users/KevinWorkman/repos","events_url":"https://api.github.com/users/KevinWorkman/events{/privacy}","received_events_url":"https://api.github.com/users/KevinWorkman/received_events","type":"User","site_admin":false},"body":"Added basic setup for registration page. Note that this does not actually handle user input yet.","created_at":"2018-04-30T00:31:29Z","updated_at":"2018-04-30T21:32:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b14083049a69b1f8615f4a9d2338b69a2a621ca0","assignee":null,"assignees":[],"requested_reviewers":[{"login":"crepricg","id":13617990,"avatar_url":"https://avatars0.githubusercontent.com/u/13617990?v=4","gravatar_id":"","url":"https://api.github.com/users/crepricg","html_url":"https://github.com/crepricg","followers_url":"https://api.github.com/users/crepricg/followers","following_url":"https://api.github.com/users/crepricg/following{/other_user}","gists_url":"https://api.github.com/users/crepricg/gists{/gist_id}","starred_url":"https://api.github.com/users/crepricg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crepricg/subscriptions","organizations_url":"https://api.github.com/users/crepricg/orgs","repos_url":"https://api.github.com/users/crepricg/repos","events_url":"https://api.github.com/users/crepricg/events{/privacy}","received_events_url":"https://api.github.com/users/crepricg/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/codeu_project_2018/pulls/9/commits","review_comments_url":"https://api.github.com/repos/google/codeu_project_2018/pulls/9/comments","review_comment_url":"https://api.github.com/repos/google/codeu_project_2018/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/codeu_project_2018/issues/9/comments","statuses_url":"https://api.github.com/repos/google/codeu_project_2018/statuses/3a5ba578fec1d325c35c12ce8489ece38c1eda21","head":{"label":"google:KevinRegisterDevelopment","ref":"KevinRegisterDevelopment","sha":"3a5ba578fec1d325c35c12ce8489ece38c1eda21","user":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":120519521,"name":"codeu_project_2018","full_name":"google/codeu_project_2018","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/codeu_project_2018","description":null,"fork":false,"url":"https://api.github.com/repos/google/codeu_project_2018","forks_url":"https://api.github.com/repos/google/codeu_project_2018/forks","keys_url":"https://api.github.com/repos/google/codeu_project_2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/codeu_project_2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/codeu_project_2018/teams","hooks_url":"https://api.github.com/repos/google/codeu_project_2018/hooks","issue_events_url":"https://api.github.com/repos/google/codeu_project_2018/issues/events{/number}","events_url":"https://api.github.com/repos/google/codeu_project_2018/events","assignees_url":"https://api.github.com/repos/google/codeu_project_2018/assignees{/user}","branches_url":"https://api.github.com/repos/google/codeu_project_2018/branches{/branch}","tags_url":"https://api.github.com/repos/google/codeu_project_2018/tags","blobs_url":"https://api.github.com/repos/google/codeu_project_2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/codeu_project_2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/codeu_project_2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/codeu_project_2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/codeu_project_2018/statuses/{sha}","languages_url":"https://api.github.com/repos/google/codeu_project_2018/languages","stargazers_url":"https://api.github.com/repos/google/codeu_project_2018/stargazers","contributors_url":"https://api.github.com/repos/google/codeu_project_2018/contributors","subscribers_url":"https://api.github.com/repos/google/codeu_project_2018/subscribers","subscription_url":"https://api.github.com/repos/google/codeu_project_2018/subscription","commits_url":"https://api.github.com/repos/google/codeu_project_2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/codeu_project_2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/codeu_project_2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/codeu_project_2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/codeu_project_2018/contents/{+path}","compare_url":"https://api.github.com/repos/google/codeu_project_2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/codeu_project_2018/merges","archive_url":"https://api.github.com/repos/google/codeu_project_2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/codeu_project_2018/downloads","issues_url":"https://api.github.com/repos/google/codeu_project_2018/issues{/number}","pulls_url":"https://api.github.com/repos/google/codeu_project_2018/pulls{/number}","milestones_url":"https://api.github.com/repos/google/codeu_project_2018/milestones{/number}","notifications_url":"https://api.github.com/repos/google/codeu_project_2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/codeu_project_2018/labels{/name}","releases_url":"https://api.github.com/repos/google/codeu_project_2018/releases{/id}","deployments_url":"https://api.github.com/repos/google/codeu_project_2018/deployments","created_at":"2018-02-06T20:30:35Z","updated_at":"2018-04-26T19:03:17Z","pushed_at":"2018-04-30T00:31:31Z","git_url":"git://github.com/google/codeu_project_2018.git","ssh_url":"git@github.com:google/codeu_project_2018.git","clone_url":"https://github.com/google/codeu_project_2018.git","svn_url":"https://github.com/google/codeu_project_2018","homepage":null,"size":61,"stargazers_count":4,"watchers_count":4,"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":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":2,"open_issues":2,"watchers":4,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"dd2e6ea3f0198d14011c3af5590382dd35b1a7b0","user":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":120519521,"name":"codeu_project_2018","full_name":"google/codeu_project_2018","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/codeu_project_2018","description":null,"fork":false,"url":"https://api.github.com/repos/google/codeu_project_2018","forks_url":"https://api.github.com/repos/google/codeu_project_2018/forks","keys_url":"https://api.github.com/repos/google/codeu_project_2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/codeu_project_2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/codeu_project_2018/teams","hooks_url":"https://api.github.com/repos/google/codeu_project_2018/hooks","issue_events_url":"https://api.github.com/repos/google/codeu_project_2018/issues/events{/number}","events_url":"https://api.github.com/repos/google/codeu_project_2018/events","assignees_url":"https://api.github.com/repos/google/codeu_project_2018/assignees{/user}","branches_url":"https://api.github.com/repos/google/codeu_project_2018/branches{/branch}","tags_url":"https://api.github.com/repos/google/codeu_project_2018/tags","blobs_url":"https://api.github.com/repos/google/codeu_project_2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/codeu_project_2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/codeu_project_2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/codeu_project_2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/codeu_project_2018/statuses/{sha}","languages_url":"https://api.github.com/repos/google/codeu_project_2018/languages","stargazers_url":"https://api.github.com/repos/google/codeu_project_2018/stargazers","contributors_url":"https://api.github.com/repos/google/codeu_project_2018/contributors","subscribers_url":"https://api.github.com/repos/google/codeu_project_2018/subscribers","subscription_url":"https://api.github.com/repos/google/codeu_project_2018/subscription","commits_url":"https://api.github.com/repos/google/codeu_project_2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/codeu_project_2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/codeu_project_2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/codeu_project_2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/codeu_project_2018/contents/{+path}","compare_url":"https://api.github.com/repos/google/codeu_project_2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/codeu_project_2018/merges","archive_url":"https://api.github.com/repos/google/codeu_project_2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/codeu_project_2018/downloads","issues_url":"https://api.github.com/repos/google/codeu_project_2018/issues{/number}","pulls_url":"https://api.github.com/repos/google/codeu_project_2018/pulls{/number}","milestones_url":"https://api.github.com/repos/google/codeu_project_2018/milestones{/number}","notifications_url":"https://api.github.com/repos/google/codeu_project_2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/codeu_project_2018/labels{/name}","releases_url":"https://api.github.com/repos/google/codeu_project_2018/releases{/id}","deployments_url":"https://api.github.com/repos/google/codeu_project_2018/deployments","created_at":"2018-02-06T20:30:35Z","updated_at":"2018-04-26T19:03:17Z","pushed_at":"2018-04-30T00:31:31Z","git_url":"git://github.com/google/codeu_project_2018.git","ssh_url":"git@github.com:google/codeu_project_2018.git","clone_url":"https://github.com/google/codeu_project_2018.git","svn_url":"https://github.com/google/codeu_project_2018","homepage":null,"size":61,"stargazers_count":4,"watchers_count":4,"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":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":2,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/codeu_project_2018/pulls/9"},"html":{"href":"https://github.com/google/codeu_project_2018/pull/9"},"issue":{"href":"https://api.github.com/repos/google/codeu_project_2018/issues/9"},"comments":{"href":"https://api.github.com/repos/google/codeu_project_2018/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/google/codeu_project_2018/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/google/codeu_project_2018/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/codeu_project_2018/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/google/codeu_project_2018/statuses/3a5ba578fec1d325c35c12ce8489ece38c1eda21"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"wgenemorgan"}}