{"action":"created","comment":{"url":"https://api.github.com/repos/europeana/metis-framework/pulls/comments/190193455","pull_request_review_id":122517706,"id":190193455,"diff_hunk":"@@ -0,0 +1,73 @@\n+package eu.europeana.enrichment.rest.client;\n+\n+import static org.mockito.ArgumentMatchers.any;\n+import static org.mockito.ArgumentMatchers.anyString;\n+import static org.mockito.Mockito.doReturn;\n+import static org.mockito.Mockito.eq;\n+import static org.mockito.Mockito.mock;\n+import static org.mockito.Mockito.spy;\n+import static org.mockito.Mockito.times;\n+import static org.mockito.Mockito.verify;\n+\n+import java.net.URI;\n+import java.util.ArrayList;\n+import java.util.List;\n+\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.mockito.runners.MockitoJUnitRunner;\n+import org.springframework.http.HttpEntity;\n+import org.springframework.http.HttpMethod;\n+import org.springframework.http.HttpStatus;\n+import org.springframework.http.ResponseEntity;\n+import org.springframework.web.client.RestTemplate;\n+\n+import eu.europeana.enrichment.api.external.model.EnrichmentBase;\n+import eu.europeana.enrichment.api.external.model.EnrichmentResultList;\n+import eu.europeana.enrichment.utils.InputValue;\n+import org.junit.Assert;\n+\n+@RunWith(MockitoJUnitRunner.class)\n+public class EnrichmentClientTest {\n+\t\n+\t@Test\n+\tpublic void testEnrich() {\n+\t\tEnrichmentResultList result = new EnrichmentResultList();\n+\t\t\n+\t    final RestTemplate restTemplate = mock(RestTemplate.class);\n+\t    doReturn(result).when(restTemplate).postForObject(anyString(), any(), any());\n+\t    \n+\t    final EnrichmentClient enrichmentClient = spy(new EnrichmentClient(\"\"));\n+\t    enrichmentClient.setRestTemplate(restTemplate);\n+\n+\t    List<InputValue> values = new ArrayList<InputValue>();\n+\t    EnrichmentResultList res = enrichmentClient.enrich(values);\n+\t    \n+\t    verify(restTemplate, times(1)).postForObject(anyString(), any(), any());\n+\t    Assert.assertEquals(res, result);","path":"metis-enrichment/metis-enrichment-client/src/test/java/eu/europeana/enrichment/rest/client/EnrichmentClientTest.java","position":null,"original_position":47,"commit_id":"d619afbd001dec35d9d05d582636139b1d09a670","original_commit_id":"54cd63fcf6b6799780eef8c2ab594e6a6fbdcbcb","user":{"login":"SidSatbhai","id":10554657,"avatar_url":"https://avatars3.githubusercontent.com/u/10554657?v=4","gravatar_id":"","url":"https://api.github.com/users/SidSatbhai","html_url":"https://github.com/SidSatbhai","followers_url":"https://api.github.com/users/SidSatbhai/followers","following_url":"https://api.github.com/users/SidSatbhai/following{/other_user}","gists_url":"https://api.github.com/users/SidSatbhai/gists{/gist_id}","starred_url":"https://api.github.com/users/SidSatbhai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SidSatbhai/subscriptions","organizations_url":"https://api.github.com/users/SidSatbhai/orgs","repos_url":"https://api.github.com/users/SidSatbhai/repos","events_url":"https://api.github.com/users/SidSatbhai/events{/privacy}","received_events_url":"https://api.github.com/users/SidSatbhai/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2018-05-23T10:11:13Z","updated_at":"2018-05-23T10:11:14Z","html_url":"https://github.com/europeana/metis-framework/pull/158#discussion_r190193455","pull_request_url":"https://api.github.com/repos/europeana/metis-framework/pulls/158","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/europeana/metis-framework/pulls/comments/190193455"},"html":{"href":"https://github.com/europeana/metis-framework/pull/158#discussion_r190193455"},"pull_request":{"href":"https://api.github.com/repos/europeana/metis-framework/pulls/158"}},"in_reply_to_id":185469168},"pull_request":{"url":"https://api.github.com/repos/europeana/metis-framework/pulls/158","id":184364419,"html_url":"https://github.com/europeana/metis-framework/pull/158","diff_url":"https://github.com/europeana/metis-framework/pull/158.diff","patch_url":"https://github.com/europeana/metis-framework/pull/158.patch","issue_url":"https://api.github.com/repos/europeana/metis-framework/issues/158","number":158,"state":"open","locked":false,"title":"Increased code coverage for enrichment module","user":{"login":"SidSatbhai","id":10554657,"avatar_url":"https://avatars3.githubusercontent.com/u/10554657?v=4","gravatar_id":"","url":"https://api.github.com/users/SidSatbhai","html_url":"https://github.com/SidSatbhai","followers_url":"https://api.github.com/users/SidSatbhai/followers","following_url":"https://api.github.com/users/SidSatbhai/following{/other_user}","gists_url":"https://api.github.com/users/SidSatbhai/gists{/gist_id}","starred_url":"https://api.github.com/users/SidSatbhai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SidSatbhai/subscriptions","organizations_url":"https://api.github.com/users/SidSatbhai/orgs","repos_url":"https://api.github.com/users/SidSatbhai/repos","events_url":"https://api.github.com/users/SidSatbhai/events{/privacy}","received_events_url":"https://api.github.com/users/SidSatbhai/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-26T14:44:09Z","updated_at":"2018-05-23T10:11:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a185939fea385a8ecdababe17e1e40f8c21d5d2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/europeana/metis-framework/pulls/158/commits","review_comments_url":"https://api.github.com/repos/europeana/metis-framework/pulls/158/comments","review_comment_url":"https://api.github.com/repos/europeana/metis-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/europeana/metis-framework/issues/158/comments","statuses_url":"https://api.github.com/repos/europeana/metis-framework/statuses/d619afbd001dec35d9d05d582636139b1d09a670","head":{"label":"europeana:feat/MET-846_code_coverage","ref":"feat/MET-846_code_coverage","sha":"d619afbd001dec35d9d05d582636139b1d09a670","user":{"login":"europeana","id":4570681,"avatar_url":"https://avatars3.githubusercontent.com/u/4570681?v=4","gravatar_id":"","url":"https://api.github.com/users/europeana","html_url":"https://github.com/europeana","followers_url":"https://api.github.com/users/europeana/followers","following_url":"https://api.github.com/users/europeana/following{/other_user}","gists_url":"https://api.github.com/users/europeana/gists{/gist_id}","starred_url":"https://api.github.com/users/europeana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/europeana/subscriptions","organizations_url":"https://api.github.com/users/europeana/orgs","repos_url":"https://api.github.com/users/europeana/repos","events_url":"https://api.github.com/users/europeana/events{/privacy}","received_events_url":"https://api.github.com/users/europeana/received_events","type":"Organization","site_admin":false},"repo":{"id":51921813,"name":"metis-framework","full_name":"europeana/metis-framework","owner":{"login":"europeana","id":4570681,"avatar_url":"https://avatars3.githubusercontent.com/u/4570681?v=4","gravatar_id":"","url":"https://api.github.com/users/europeana","html_url":"https://github.com/europeana","followers_url":"https://api.github.com/users/europeana/followers","following_url":"https://api.github.com/users/europeana/following{/other_user}","gists_url":"https://api.github.com/users/europeana/gists{/gist_id}","starred_url":"https://api.github.com/users/europeana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/europeana/subscriptions","organizations_url":"https://api.github.com/users/europeana/orgs","repos_url":"https://api.github.com/users/europeana/repos","events_url":"https://api.github.com/users/europeana/events{/privacy}","received_events_url":"https://api.github.com/users/europeana/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/europeana/metis-framework","description":"Metis, named after the Titaness of Wisdom, is our in-development data publication framework including both a client application and a number of data processing (micro)services","fork":false,"url":"https://api.github.com/repos/europeana/metis-framework","forks_url":"https://api.github.com/repos/europeana/metis-framework/forks","keys_url":"https://api.github.com/repos/europeana/metis-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/europeana/metis-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/europeana/metis-framework/teams","hooks_url":"https://api.github.com/repos/europeana/metis-framework/hooks","issue_events_url":"https://api.github.com/repos/europeana/metis-framework/issues/events{/number}","events_url":"https://api.github.com/repos/europeana/metis-framework/events","assignees_url":"https://api.github.com/repos/europeana/metis-framework/assignees{/user}","branches_url":"https://api.github.com/repos/europeana/metis-framework/branches{/branch}","tags_url":"https://api.github.com/repos/europeana/metis-framework/tags","blobs_url":"https://api.github.com/repos/europeana/metis-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/europeana/metis-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/europeana/metis-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/europeana/metis-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/europeana/metis-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/europeana/metis-framework/languages","stargazers_url":"https://api.github.com/repos/europeana/metis-framework/stargazers","contributors_url":"https://api.github.com/repos/europeana/metis-framework/contributors","subscribers_url":"https://api.github.com/repos/europeana/metis-framework/subscribers","subscription_url":"https://api.github.com/repos/europeana/metis-framework/subscription","commits_url":"https://api.github.com/repos/europeana/metis-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/europeana/metis-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/europeana/metis-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/europeana/metis-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/europeana/metis-framework/contents/{+path}","compare_url":"https://api.github.com/repos/europeana/metis-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/europeana/metis-framework/merges","archive_url":"https://api.github.com/repos/europeana/metis-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/europeana/metis-framework/downloads","issues_url":"https://api.github.com/repos/europeana/metis-framework/issues{/number}","pulls_url":"https://api.github.com/repos/europeana/metis-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/europeana/metis-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/europeana/metis-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/europeana/metis-framework/labels{/name}","releases_url":"https://api.github.com/repos/europeana/metis-framework/releases{/id}","deployments_url":"https://api.github.com/repos/europeana/metis-framework/deployments","created_at":"2016-02-17T12:43:34Z","updated_at":"2018-05-18T10:32:06Z","pushed_at":"2018-05-23T10:04:32Z","git_url":"git://github.com/europeana/metis-framework.git","ssh_url":"git@github.com:europeana/metis-framework.git","clone_url":"https://github.com/europeana/metis-framework.git","svn_url":"https://github.com/europeana/metis-framework","homepage":"","size":128401,"stargazers_count":7,"watchers_count":7,"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":1,"license":{"key":"eupl-1.1","name":"European Union Public License 1.1","spdx_id":"EUPL-1.1","url":"https://api.github.com/licenses/eupl-1.1"},"forks":2,"open_issues":1,"watchers":7,"default_branch":"develop"}},"base":{"label":"europeana:develop","ref":"develop","sha":"6bce5b849309fa94fbc9cbf18d0ed264f2e4b72d","user":{"login":"europeana","id":4570681,"avatar_url":"https://avatars3.githubusercontent.com/u/4570681?v=4","gravatar_id":"","url":"https://api.github.com/users/europeana","html_url":"https://github.com/europeana","followers_url":"https://api.github.com/users/europeana/followers","following_url":"https://api.github.com/users/europeana/following{/other_user}","gists_url":"https://api.github.com/users/europeana/gists{/gist_id}","starred_url":"https://api.github.com/users/europeana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/europeana/subscriptions","organizations_url":"https://api.github.com/users/europeana/orgs","repos_url":"https://api.github.com/users/europeana/repos","events_url":"https://api.github.com/users/europeana/events{/privacy}","received_events_url":"https://api.github.com/users/europeana/received_events","type":"Organization","site_admin":false},"repo":{"id":51921813,"name":"metis-framework","full_name":"europeana/metis-framework","owner":{"login":"europeana","id":4570681,"avatar_url":"https://avatars3.githubusercontent.com/u/4570681?v=4","gravatar_id":"","url":"https://api.github.com/users/europeana","html_url":"https://github.com/europeana","followers_url":"https://api.github.com/users/europeana/followers","following_url":"https://api.github.com/users/europeana/following{/other_user}","gists_url":"https://api.github.com/users/europeana/gists{/gist_id}","starred_url":"https://api.github.com/users/europeana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/europeana/subscriptions","organizations_url":"https://api.github.com/users/europeana/orgs","repos_url":"https://api.github.com/users/europeana/repos","events_url":"https://api.github.com/users/europeana/events{/privacy}","received_events_url":"https://api.github.com/users/europeana/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/europeana/metis-framework","description":"Metis, named after the Titaness of Wisdom, is our in-development data publication framework including both a client application and a number of data processing (micro)services","fork":false,"url":"https://api.github.com/repos/europeana/metis-framework","forks_url":"https://api.github.com/repos/europeana/metis-framework/forks","keys_url":"https://api.github.com/repos/europeana/metis-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/europeana/metis-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/europeana/metis-framework/teams","hooks_url":"https://api.github.com/repos/europeana/metis-framework/hooks","issue_events_url":"https://api.github.com/repos/europeana/metis-framework/issues/events{/number}","events_url":"https://api.github.com/repos/europeana/metis-framework/events","assignees_url":"https://api.github.com/repos/europeana/metis-framework/assignees{/user}","branches_url":"https://api.github.com/repos/europeana/metis-framework/branches{/branch}","tags_url":"https://api.github.com/repos/europeana/metis-framework/tags","blobs_url":"https://api.github.com/repos/europeana/metis-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/europeana/metis-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/europeana/metis-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/europeana/metis-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/europeana/metis-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/europeana/metis-framework/languages","stargazers_url":"https://api.github.com/repos/europeana/metis-framework/stargazers","contributors_url":"https://api.github.com/repos/europeana/metis-framework/contributors","subscribers_url":"https://api.github.com/repos/europeana/metis-framework/subscribers","subscription_url":"https://api.github.com/repos/europeana/metis-framework/subscription","commits_url":"https://api.github.com/repos/europeana/metis-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/europeana/metis-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/europeana/metis-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/europeana/metis-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/europeana/metis-framework/contents/{+path}","compare_url":"https://api.github.com/repos/europeana/metis-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/europeana/metis-framework/merges","archive_url":"https://api.github.com/repos/europeana/metis-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/europeana/metis-framework/downloads","issues_url":"https://api.github.com/repos/europeana/metis-framework/issues{/number}","pulls_url":"https://api.github.com/repos/europeana/metis-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/europeana/metis-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/europeana/metis-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/europeana/metis-framework/labels{/name}","releases_url":"https://api.github.com/repos/europeana/metis-framework/releases{/id}","deployments_url":"https://api.github.com/repos/europeana/metis-framework/deployments","created_at":"2016-02-17T12:43:34Z","updated_at":"2018-05-18T10:32:06Z","pushed_at":"2018-05-23T10:04:32Z","git_url":"git://github.com/europeana/metis-framework.git","ssh_url":"git@github.com:europeana/metis-framework.git","clone_url":"https://github.com/europeana/metis-framework.git","svn_url":"https://github.com/europeana/metis-framework","homepage":"","size":128401,"stargazers_count":7,"watchers_count":7,"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":1,"license":{"key":"eupl-1.1","name":"European Union Public License 1.1","spdx_id":"EUPL-1.1","url":"https://api.github.com/licenses/eupl-1.1"},"forks":2,"open_issues":1,"watchers":7,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/europeana/metis-framework/pulls/158"},"html":{"href":"https://github.com/europeana/metis-framework/pull/158"},"issue":{"href":"https://api.github.com/repos/europeana/metis-framework/issues/158"},"comments":{"href":"https://api.github.com/repos/europeana/metis-framework/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/europeana/metis-framework/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/europeana/metis-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/europeana/metis-framework/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/europeana/metis-framework/statuses/d619afbd001dec35d9d05d582636139b1d09a670"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"SidSatbhai"}}