{"action":"created","comment":{"url":"https://api.github.com/repos/CeON/saos/pulls/comments/30123712","id":30123712,"diff_hunk":"@@ -0,0 +1,85 @@\n+package pl.edu.icm.saos.api;\n+\n+import static org.hamcrest.Matchers.allOf;\n+import static org.hamcrest.Matchers.containsString;\n+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.header;\n+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;\n+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;\n+\n+import org.hamcrest.Matcher;\n+import org.springframework.http.HttpStatus;\n+import org.springframework.test.web.servlet.ResultActions;\n+\n+import pl.edu.icm.saos.api.services.exceptions.status.ErrorReason;\n+\n+/**\n+ * @author madryk\n+ */\n+public class ApiResponseAssertUtils {\n+\n+    ","path":"saos-restful-web-api/src/test/java/pl/edu/icm/saos/api/ApiResponseAssertUtils.java","position":20,"original_position":20,"commit_id":"890a5f1c284cd658db8b536962b08711a778fc40","original_commit_id":"890a5f1c284cd658db8b536962b08711a778fc40","user":{"login":"madryk","id":8190961,"avatar_url":"https://avatars.githubusercontent.com/u/8190961?v=3","gravatar_id":"","url":"https://api.github.com/users/madryk","html_url":"https://github.com/madryk","followers_url":"https://api.github.com/users/madryk/followers","following_url":"https://api.github.com/users/madryk/following{/other_user}","gists_url":"https://api.github.com/users/madryk/gists{/gist_id}","starred_url":"https://api.github.com/users/madryk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madryk/subscriptions","organizations_url":"https://api.github.com/users/madryk/orgs","repos_url":"https://api.github.com/users/madryk/repos","events_url":"https://api.github.com/users/madryk/events{/privacy}","received_events_url":"https://api.github.com/users/madryk/received_events","type":"User","site_admin":false},"body":"ok","created_at":"2015-05-12T11:12:48Z","updated_at":"2015-05-12T11:12:48Z","html_url":"https://github.com/CeON/saos/pull/786#discussion_r30123712","pull_request_url":"https://api.github.com/repos/CeON/saos/pulls/786","_links":{"self":{"href":"https://api.github.com/repos/CeON/saos/pulls/comments/30123712"},"html":{"href":"https://github.com/CeON/saos/pull/786#discussion_r30123712"},"pull_request":{"href":"https://api.github.com/repos/CeON/saos/pulls/786"}}},"pull_request":{"url":"https://api.github.com/repos/CeON/saos/pulls/786","id":35203294,"html_url":"https://github.com/CeON/saos/pull/786","diff_url":"https://github.com/CeON/saos/pull/786.diff","patch_url":"https://github.com/CeON/saos/pull/786.patch","issue_url":"https://api.github.com/repos/CeON/saos/issues/786","number":786,"state":"open","locked":false,"title":"#753. rest api integration test check response headers, check error m…","user":{"login":"madryk","id":8190961,"avatar_url":"https://avatars.githubusercontent.com/u/8190961?v=3","gravatar_id":"","url":"https://api.github.com/users/madryk","html_url":"https://github.com/madryk","followers_url":"https://api.github.com/users/madryk/followers","following_url":"https://api.github.com/users/madryk/following{/other_user}","gists_url":"https://api.github.com/users/madryk/gists{/gist_id}","starred_url":"https://api.github.com/users/madryk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madryk/subscriptions","organizations_url":"https://api.github.com/users/madryk/orgs","repos_url":"https://api.github.com/users/madryk/repos","events_url":"https://api.github.com/users/madryk/events{/privacy}","received_events_url":"https://api.github.com/users/madryk/received_events","type":"User","site_admin":false},"body":"…essages","created_at":"2015-05-12T08:28:16Z","updated_at":"2015-05-12T11:12:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e76a04cd33fd7aa070143120cfc116516776e0c","assignee":{"login":"madryk","id":8190961,"avatar_url":"https://avatars.githubusercontent.com/u/8190961?v=3","gravatar_id":"","url":"https://api.github.com/users/madryk","html_url":"https://github.com/madryk","followers_url":"https://api.github.com/users/madryk/followers","following_url":"https://api.github.com/users/madryk/following{/other_user}","gists_url":"https://api.github.com/users/madryk/gists{/gist_id}","starred_url":"https://api.github.com/users/madryk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madryk/subscriptions","organizations_url":"https://api.github.com/users/madryk/orgs","repos_url":"https://api.github.com/users/madryk/repos","events_url":"https://api.github.com/users/madryk/events{/privacy}","received_events_url":"https://api.github.com/users/madryk/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/CeON/saos/pulls/786/commits","review_comments_url":"https://api.github.com/repos/CeON/saos/pulls/786/comments","review_comment_url":"https://api.github.com/repos/CeON/saos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CeON/saos/issues/786/comments","statuses_url":"https://api.github.com/repos/CeON/saos/statuses/890a5f1c284cd658db8b536962b08711a778fc40","head":{"label":"CeON:madryk_753_rest_api_test_check_headers","ref":"madryk_753_rest_api_test_check_headers","sha":"890a5f1c284cd658db8b536962b08711a778fc40","user":{"login":"CeON","id":2034254,"avatar_url":"https://avatars.githubusercontent.com/u/2034254?v=3","gravatar_id":"","url":"https://api.github.com/users/CeON","html_url":"https://github.com/CeON","followers_url":"https://api.github.com/users/CeON/followers","following_url":"https://api.github.com/users/CeON/following{/other_user}","gists_url":"https://api.github.com/users/CeON/gists{/gist_id}","starred_url":"https://api.github.com/users/CeON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CeON/subscriptions","organizations_url":"https://api.github.com/users/CeON/orgs","repos_url":"https://api.github.com/users/CeON/repos","events_url":"https://api.github.com/users/CeON/events{/privacy}","received_events_url":"https://api.github.com/users/CeON/received_events","type":"Organization","site_admin":false},"repo":{"id":19143929,"name":"saos","full_name":"CeON/saos","owner":{"login":"CeON","id":2034254,"avatar_url":"https://avatars.githubusercontent.com/u/2034254?v=3","gravatar_id":"","url":"https://api.github.com/users/CeON","html_url":"https://github.com/CeON","followers_url":"https://api.github.com/users/CeON/followers","following_url":"https://api.github.com/users/CeON/following{/other_user}","gists_url":"https://api.github.com/users/CeON/gists{/gist_id}","starred_url":"https://api.github.com/users/CeON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CeON/subscriptions","organizations_url":"https://api.github.com/users/CeON/orgs","repos_url":"https://api.github.com/users/CeON/repos","events_url":"https://api.github.com/users/CeON/events{/privacy}","received_events_url":"https://api.github.com/users/CeON/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CeON/saos","description":"System Analizy Orzeczeń Sądowych /Court Judgement Analysis System/","fork":false,"url":"https://api.github.com/repos/CeON/saos","forks_url":"https://api.github.com/repos/CeON/saos/forks","keys_url":"https://api.github.com/repos/CeON/saos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CeON/saos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CeON/saos/teams","hooks_url":"https://api.github.com/repos/CeON/saos/hooks","issue_events_url":"https://api.github.com/repos/CeON/saos/issues/events{/number}","events_url":"https://api.github.com/repos/CeON/saos/events","assignees_url":"https://api.github.com/repos/CeON/saos/assignees{/user}","branches_url":"https://api.github.com/repos/CeON/saos/branches{/branch}","tags_url":"https://api.github.com/repos/CeON/saos/tags","blobs_url":"https://api.github.com/repos/CeON/saos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CeON/saos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CeON/saos/git/refs{/sha}","trees_url":"https://api.github.com/repos/CeON/saos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CeON/saos/statuses/{sha}","languages_url":"https://api.github.com/repos/CeON/saos/languages","stargazers_url":"https://api.github.com/repos/CeON/saos/stargazers","contributors_url":"https://api.github.com/repos/CeON/saos/contributors","subscribers_url":"https://api.github.com/repos/CeON/saos/subscribers","subscription_url":"https://api.github.com/repos/CeON/saos/subscription","commits_url":"https://api.github.com/repos/CeON/saos/commits{/sha}","git_commits_url":"https://api.github.com/repos/CeON/saos/git/commits{/sha}","comments_url":"https://api.github.com/repos/CeON/saos/comments{/number}","issue_comment_url":"https://api.github.com/repos/CeON/saos/issues/comments{/number}","contents_url":"https://api.github.com/repos/CeON/saos/contents/{+path}","compare_url":"https://api.github.com/repos/CeON/saos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CeON/saos/merges","archive_url":"https://api.github.com/repos/CeON/saos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CeON/saos/downloads","issues_url":"https://api.github.com/repos/CeON/saos/issues{/number}","pulls_url":"https://api.github.com/repos/CeON/saos/pulls{/number}","milestones_url":"https://api.github.com/repos/CeON/saos/milestones{/number}","notifications_url":"https://api.github.com/repos/CeON/saos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CeON/saos/labels{/name}","releases_url":"https://api.github.com/repos/CeON/saos/releases{/id}","created_at":"2014-04-25T11:33:17Z","updated_at":"2015-05-07T06:28:20Z","pushed_at":"2015-05-12T10:00:49Z","git_url":"git://github.com/CeON/saos.git","ssh_url":"git@github.com:CeON/saos.git","clone_url":"https://github.com/CeON/saos.git","svn_url":"https://github.com/CeON/saos","homepage":null,"size":19451,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":38,"forks":2,"open_issues":38,"watchers":5,"default_branch":"master"}},"base":{"label":"CeON:master","ref":"master","sha":"789a8fb73f865fdedc04c2fb05a447b2ec6ea301","user":{"login":"CeON","id":2034254,"avatar_url":"https://avatars.githubusercontent.com/u/2034254?v=3","gravatar_id":"","url":"https://api.github.com/users/CeON","html_url":"https://github.com/CeON","followers_url":"https://api.github.com/users/CeON/followers","following_url":"https://api.github.com/users/CeON/following{/other_user}","gists_url":"https://api.github.com/users/CeON/gists{/gist_id}","starred_url":"https://api.github.com/users/CeON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CeON/subscriptions","organizations_url":"https://api.github.com/users/CeON/orgs","repos_url":"https://api.github.com/users/CeON/repos","events_url":"https://api.github.com/users/CeON/events{/privacy}","received_events_url":"https://api.github.com/users/CeON/received_events","type":"Organization","site_admin":false},"repo":{"id":19143929,"name":"saos","full_name":"CeON/saos","owner":{"login":"CeON","id":2034254,"avatar_url":"https://avatars.githubusercontent.com/u/2034254?v=3","gravatar_id":"","url":"https://api.github.com/users/CeON","html_url":"https://github.com/CeON","followers_url":"https://api.github.com/users/CeON/followers","following_url":"https://api.github.com/users/CeON/following{/other_user}","gists_url":"https://api.github.com/users/CeON/gists{/gist_id}","starred_url":"https://api.github.com/users/CeON/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CeON/subscriptions","organizations_url":"https://api.github.com/users/CeON/orgs","repos_url":"https://api.github.com/users/CeON/repos","events_url":"https://api.github.com/users/CeON/events{/privacy}","received_events_url":"https://api.github.com/users/CeON/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CeON/saos","description":"System Analizy Orzeczeń Sądowych /Court Judgement Analysis System/","fork":false,"url":"https://api.github.com/repos/CeON/saos","forks_url":"https://api.github.com/repos/CeON/saos/forks","keys_url":"https://api.github.com/repos/CeON/saos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CeON/saos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CeON/saos/teams","hooks_url":"https://api.github.com/repos/CeON/saos/hooks","issue_events_url":"https://api.github.com/repos/CeON/saos/issues/events{/number}","events_url":"https://api.github.com/repos/CeON/saos/events","assignees_url":"https://api.github.com/repos/CeON/saos/assignees{/user}","branches_url":"https://api.github.com/repos/CeON/saos/branches{/branch}","tags_url":"https://api.github.com/repos/CeON/saos/tags","blobs_url":"https://api.github.com/repos/CeON/saos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CeON/saos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CeON/saos/git/refs{/sha}","trees_url":"https://api.github.com/repos/CeON/saos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CeON/saos/statuses/{sha}","languages_url":"https://api.github.com/repos/CeON/saos/languages","stargazers_url":"https://api.github.com/repos/CeON/saos/stargazers","contributors_url":"https://api.github.com/repos/CeON/saos/contributors","subscribers_url":"https://api.github.com/repos/CeON/saos/subscribers","subscription_url":"https://api.github.com/repos/CeON/saos/subscription","commits_url":"https://api.github.com/repos/CeON/saos/commits{/sha}","git_commits_url":"https://api.github.com/repos/CeON/saos/git/commits{/sha}","comments_url":"https://api.github.com/repos/CeON/saos/comments{/number}","issue_comment_url":"https://api.github.com/repos/CeON/saos/issues/comments{/number}","contents_url":"https://api.github.com/repos/CeON/saos/contents/{+path}","compare_url":"https://api.github.com/repos/CeON/saos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CeON/saos/merges","archive_url":"https://api.github.com/repos/CeON/saos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CeON/saos/downloads","issues_url":"https://api.github.com/repos/CeON/saos/issues{/number}","pulls_url":"https://api.github.com/repos/CeON/saos/pulls{/number}","milestones_url":"https://api.github.com/repos/CeON/saos/milestones{/number}","notifications_url":"https://api.github.com/repos/CeON/saos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CeON/saos/labels{/name}","releases_url":"https://api.github.com/repos/CeON/saos/releases{/id}","created_at":"2014-04-25T11:33:17Z","updated_at":"2015-05-07T06:28:20Z","pushed_at":"2015-05-12T10:00:49Z","git_url":"git://github.com/CeON/saos.git","ssh_url":"git@github.com:CeON/saos.git","clone_url":"https://github.com/CeON/saos.git","svn_url":"https://github.com/CeON/saos","homepage":null,"size":19451,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":38,"forks":2,"open_issues":38,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CeON/saos/pulls/786"},"html":{"href":"https://github.com/CeON/saos/pull/786"},"issue":{"href":"https://api.github.com/repos/CeON/saos/issues/786"},"comments":{"href":"https://api.github.com/repos/CeON/saos/issues/786/comments"},"review_comments":{"href":"https://api.github.com/repos/CeON/saos/pulls/786/comments"},"review_comment":{"href":"https://api.github.com/repos/CeON/saos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CeON/saos/pulls/786/commits"},"statuses":{"href":"https://api.github.com/repos/CeON/saos/statuses/890a5f1c284cd658db8b536962b08711a778fc40"}}}}