{"action":"created","comment":{"url":"https://api.github.com/repos/openaire/iis/pulls/comments/63851697","id":63851697,"diff_hunk":"@@ -0,0 +1,128 @@\n+package eu.dnetlib.iis.wf.export.actionmanager.module;\n+\n+import static org.junit.Assert.assertEquals;\n+import static org.junit.Assert.assertNotNull;\n+import static org.junit.Assert.assertTrue;\n+\n+import java.util.List;\n+\n+import org.junit.Before;\n+import org.junit.Test;\n+\n+import com.google.protobuf.InvalidProtocolBufferException;\n+\n+import eu.dnetlib.actionmanager.actions.AtomicAction;\n+import eu.dnetlib.actionmanager.common.Agent;\n+import eu.dnetlib.data.proto.KindProtos;\n+import eu.dnetlib.data.proto.OafProtos.Oaf;\n+import eu.dnetlib.data.proto.RelTypeProtos.RelType;\n+import eu.dnetlib.data.proto.RelTypeProtos.SubRelType;\n+import eu.dnetlib.data.proto.ResultOrganizationProtos.ResultOrganization.Affiliation;\n+import eu.dnetlib.iis.wf.affmatching.model.MatchedOrganization;\n+import eu.dnetlib.iis.wf.export.actionmanager.module.MatchedOrganizationActionBuilderModuleFactory.MatchedOrganizationActionBuilderModule;\n+\n+/**\n+ * @author mhorst\n+ *\n+ */\n+public class MatchedOrganizationActionBuilderModuleFactoryTest {\n+\n+    MatchedOrganizationActionBuilderModule module;\n+\n+    Float trustLevelThreshold = 0.5f;\n+\n+    String actionSetId = \"someActionSetId\";\n+\n+    Agent agent = new Agent(\"agentId\", \"agent name\", Agent.AGENT_TYPE.service);\n+\n+    String docId = \"documentId\";\n+\n+    String orgId = \"organizationId\";\n+\n+    float matchStrength = 0.9f;\n+\n+    MatchedOrganization matchedOrg = buildMatchedOrganization(docId, orgId, matchStrength);","path":"iis-wf/iis-wf-export-actionmanager/src/test/java/eu/dnetlib/iis/wf/export/actionmanager/module/MatchedOrganizationActionBuilderModuleFactoryTest.java","position":44,"original_position":44,"commit_id":"867410eb16bbeaa16aa6bbc1d71abc579eed341e","original_commit_id":"d081ae32049355fc3e890c151689b20c5a2d6a62","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":"these fields probably should be `private`","created_at":"2016-05-19T09:59:39Z","updated_at":"2016-05-19T09:59:39Z","html_url":"https://github.com/openaire/iis/pull/406#discussion_r63851697","pull_request_url":"https://api.github.com/repos/openaire/iis/pulls/406","_links":{"self":{"href":"https://api.github.com/repos/openaire/iis/pulls/comments/63851697"},"html":{"href":"https://github.com/openaire/iis/pull/406#discussion_r63851697"},"pull_request":{"href":"https://api.github.com/repos/openaire/iis/pulls/406"}}},"pull_request":{"url":"https://api.github.com/repos/openaire/iis/pulls/406","id":70554180,"html_url":"https://github.com/openaire/iis/pull/406","diff_url":"https://github.com/openaire/iis/pull/406.diff","patch_url":"https://github.com/openaire/iis/pull/406.patch","issue_url":"https://api.github.com/repos/openaire/iis/issues/406","number":406,"state":"open","locked":false,"title":"Closes #295: Export relations between publications and organizations","user":{"login":"marekhorst","id":11537389,"avatar_url":"https://avatars.githubusercontent.com/u/11537389?v=3","gravatar_id":"","url":"https://api.github.com/users/marekhorst","html_url":"https://github.com/marekhorst","followers_url":"https://api.github.com/users/marekhorst/followers","following_url":"https://api.github.com/users/marekhorst/following{/other_user}","gists_url":"https://api.github.com/users/marekhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/marekhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marekhorst/subscriptions","organizations_url":"https://api.github.com/users/marekhorst/orgs","repos_url":"https://api.github.com/users/marekhorst/repos","events_url":"https://api.github.com/users/marekhorst/events{/privacy}","received_events_url":"https://api.github.com/users/marekhorst/received_events","type":"User","site_admin":false},"body":"I've split this into two commits: the second one is related to indentation fixes only so you can put less effort when analyzing changes.","created_at":"2016-05-18T15:56:21Z","updated_at":"2016-05-19T09:59:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b4281fe0f80e8054698eaadc58c577e4cf60fcf","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/openaire/iis/pulls/406/commits","review_comments_url":"https://api.github.com/repos/openaire/iis/pulls/406/comments","review_comment_url":"https://api.github.com/repos/openaire/iis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openaire/iis/issues/406/comments","statuses_url":"https://api.github.com/repos/openaire/iis/statuses/867410eb16bbeaa16aa6bbc1d71abc579eed341e","head":{"label":"openaire:marekhorst_295_export_relations_between_publications_and_organizations","ref":"marekhorst_295_export_relations_between_publications_and_organizations","sha":"867410eb16bbeaa16aa6bbc1d71abc579eed341e","user":{"login":"openaire","id":10127536,"avatar_url":"https://avatars.githubusercontent.com/u/10127536?v=3","gravatar_id":"","url":"https://api.github.com/users/openaire","html_url":"https://github.com/openaire","followers_url":"https://api.github.com/users/openaire/followers","following_url":"https://api.github.com/users/openaire/following{/other_user}","gists_url":"https://api.github.com/users/openaire/gists{/gist_id}","starred_url":"https://api.github.com/users/openaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openaire/subscriptions","organizations_url":"https://api.github.com/users/openaire/orgs","repos_url":"https://api.github.com/users/openaire/repos","events_url":"https://api.github.com/users/openaire/events{/privacy}","received_events_url":"https://api.github.com/users/openaire/received_events","type":"Organization","site_admin":false},"repo":{"id":42290369,"name":"iis","full_name":"openaire/iis","owner":{"login":"openaire","id":10127536,"avatar_url":"https://avatars.githubusercontent.com/u/10127536?v=3","gravatar_id":"","url":"https://api.github.com/users/openaire","html_url":"https://github.com/openaire","followers_url":"https://api.github.com/users/openaire/followers","following_url":"https://api.github.com/users/openaire/following{/other_user}","gists_url":"https://api.github.com/users/openaire/gists{/gist_id}","starred_url":"https://api.github.com/users/openaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openaire/subscriptions","organizations_url":"https://api.github.com/users/openaire/orgs","repos_url":"https://api.github.com/users/openaire/repos","events_url":"https://api.github.com/users/openaire/events{/privacy}","received_events_url":"https://api.github.com/users/openaire/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openaire/iis","description":"Information Inference Service of the OpenAIRE system","fork":false,"url":"https://api.github.com/repos/openaire/iis","forks_url":"https://api.github.com/repos/openaire/iis/forks","keys_url":"https://api.github.com/repos/openaire/iis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openaire/iis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openaire/iis/teams","hooks_url":"https://api.github.com/repos/openaire/iis/hooks","issue_events_url":"https://api.github.com/repos/openaire/iis/issues/events{/number}","events_url":"https://api.github.com/repos/openaire/iis/events","assignees_url":"https://api.github.com/repos/openaire/iis/assignees{/user}","branches_url":"https://api.github.com/repos/openaire/iis/branches{/branch}","tags_url":"https://api.github.com/repos/openaire/iis/tags","blobs_url":"https://api.github.com/repos/openaire/iis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openaire/iis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openaire/iis/git/refs{/sha}","trees_url":"https://api.github.com/repos/openaire/iis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openaire/iis/statuses/{sha}","languages_url":"https://api.github.com/repos/openaire/iis/languages","stargazers_url":"https://api.github.com/repos/openaire/iis/stargazers","contributors_url":"https://api.github.com/repos/openaire/iis/contributors","subscribers_url":"https://api.github.com/repos/openaire/iis/subscribers","subscription_url":"https://api.github.com/repos/openaire/iis/subscription","commits_url":"https://api.github.com/repos/openaire/iis/commits{/sha}","git_commits_url":"https://api.github.com/repos/openaire/iis/git/commits{/sha}","comments_url":"https://api.github.com/repos/openaire/iis/comments{/number}","issue_comment_url":"https://api.github.com/repos/openaire/iis/issues/comments{/number}","contents_url":"https://api.github.com/repos/openaire/iis/contents/{+path}","compare_url":"https://api.github.com/repos/openaire/iis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openaire/iis/merges","archive_url":"https://api.github.com/repos/openaire/iis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openaire/iis/downloads","issues_url":"https://api.github.com/repos/openaire/iis/issues{/number}","pulls_url":"https://api.github.com/repos/openaire/iis/pulls{/number}","milestones_url":"https://api.github.com/repos/openaire/iis/milestones{/number}","notifications_url":"https://api.github.com/repos/openaire/iis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openaire/iis/labels{/name}","releases_url":"https://api.github.com/repos/openaire/iis/releases{/id}","deployments_url":"https://api.github.com/repos/openaire/iis/deployments","created_at":"2015-09-11T05:55:08Z","updated_at":"2016-04-05T11:16:21Z","pushed_at":"2016-05-19T09:16:10Z","git_url":"git://github.com/openaire/iis.git","ssh_url":"git@github.com:openaire/iis.git","clone_url":"https://github.com/openaire/iis.git","svn_url":"https://github.com/openaire/iis","homepage":"","size":53601,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":28,"forks":2,"open_issues":28,"watchers":6,"default_branch":"cdh5"}},"base":{"label":"openaire:cdh5","ref":"cdh5","sha":"145ecfd52cc6a2fca7e02fde7c67b744b4eb9b45","user":{"login":"openaire","id":10127536,"avatar_url":"https://avatars.githubusercontent.com/u/10127536?v=3","gravatar_id":"","url":"https://api.github.com/users/openaire","html_url":"https://github.com/openaire","followers_url":"https://api.github.com/users/openaire/followers","following_url":"https://api.github.com/users/openaire/following{/other_user}","gists_url":"https://api.github.com/users/openaire/gists{/gist_id}","starred_url":"https://api.github.com/users/openaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openaire/subscriptions","organizations_url":"https://api.github.com/users/openaire/orgs","repos_url":"https://api.github.com/users/openaire/repos","events_url":"https://api.github.com/users/openaire/events{/privacy}","received_events_url":"https://api.github.com/users/openaire/received_events","type":"Organization","site_admin":false},"repo":{"id":42290369,"name":"iis","full_name":"openaire/iis","owner":{"login":"openaire","id":10127536,"avatar_url":"https://avatars.githubusercontent.com/u/10127536?v=3","gravatar_id":"","url":"https://api.github.com/users/openaire","html_url":"https://github.com/openaire","followers_url":"https://api.github.com/users/openaire/followers","following_url":"https://api.github.com/users/openaire/following{/other_user}","gists_url":"https://api.github.com/users/openaire/gists{/gist_id}","starred_url":"https://api.github.com/users/openaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openaire/subscriptions","organizations_url":"https://api.github.com/users/openaire/orgs","repos_url":"https://api.github.com/users/openaire/repos","events_url":"https://api.github.com/users/openaire/events{/privacy}","received_events_url":"https://api.github.com/users/openaire/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openaire/iis","description":"Information Inference Service of the OpenAIRE system","fork":false,"url":"https://api.github.com/repos/openaire/iis","forks_url":"https://api.github.com/repos/openaire/iis/forks","keys_url":"https://api.github.com/repos/openaire/iis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openaire/iis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openaire/iis/teams","hooks_url":"https://api.github.com/repos/openaire/iis/hooks","issue_events_url":"https://api.github.com/repos/openaire/iis/issues/events{/number}","events_url":"https://api.github.com/repos/openaire/iis/events","assignees_url":"https://api.github.com/repos/openaire/iis/assignees{/user}","branches_url":"https://api.github.com/repos/openaire/iis/branches{/branch}","tags_url":"https://api.github.com/repos/openaire/iis/tags","blobs_url":"https://api.github.com/repos/openaire/iis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openaire/iis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openaire/iis/git/refs{/sha}","trees_url":"https://api.github.com/repos/openaire/iis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openaire/iis/statuses/{sha}","languages_url":"https://api.github.com/repos/openaire/iis/languages","stargazers_url":"https://api.github.com/repos/openaire/iis/stargazers","contributors_url":"https://api.github.com/repos/openaire/iis/contributors","subscribers_url":"https://api.github.com/repos/openaire/iis/subscribers","subscription_url":"https://api.github.com/repos/openaire/iis/subscription","commits_url":"https://api.github.com/repos/openaire/iis/commits{/sha}","git_commits_url":"https://api.github.com/repos/openaire/iis/git/commits{/sha}","comments_url":"https://api.github.com/repos/openaire/iis/comments{/number}","issue_comment_url":"https://api.github.com/repos/openaire/iis/issues/comments{/number}","contents_url":"https://api.github.com/repos/openaire/iis/contents/{+path}","compare_url":"https://api.github.com/repos/openaire/iis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openaire/iis/merges","archive_url":"https://api.github.com/repos/openaire/iis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openaire/iis/downloads","issues_url":"https://api.github.com/repos/openaire/iis/issues{/number}","pulls_url":"https://api.github.com/repos/openaire/iis/pulls{/number}","milestones_url":"https://api.github.com/repos/openaire/iis/milestones{/number}","notifications_url":"https://api.github.com/repos/openaire/iis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openaire/iis/labels{/name}","releases_url":"https://api.github.com/repos/openaire/iis/releases{/id}","deployments_url":"https://api.github.com/repos/openaire/iis/deployments","created_at":"2015-09-11T05:55:08Z","updated_at":"2016-04-05T11:16:21Z","pushed_at":"2016-05-19T09:16:10Z","git_url":"git://github.com/openaire/iis.git","ssh_url":"git@github.com:openaire/iis.git","clone_url":"https://github.com/openaire/iis.git","svn_url":"https://github.com/openaire/iis","homepage":"","size":53601,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":28,"forks":2,"open_issues":28,"watchers":6,"default_branch":"cdh5"}},"_links":{"self":{"href":"https://api.github.com/repos/openaire/iis/pulls/406"},"html":{"href":"https://github.com/openaire/iis/pull/406"},"issue":{"href":"https://api.github.com/repos/openaire/iis/issues/406"},"comments":{"href":"https://api.github.com/repos/openaire/iis/issues/406/comments"},"review_comments":{"href":"https://api.github.com/repos/openaire/iis/pulls/406/comments"},"review_comment":{"href":"https://api.github.com/repos/openaire/iis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openaire/iis/pulls/406/commits"},"statuses":{"href":"https://api.github.com/repos/openaire/iis/statuses/867410eb16bbeaa16aa6bbc1d71abc579eed341e"}}}}