{"action":"created","comment":{"url":"https://api.github.com/repos/bonitasoft/bonita-engine/pulls/comments/36167094","id":36167094,"diff_hunk":"@@ -0,0 +1,68 @@\n+/*******************************************************************************\n+ * Copyright (C) 2015 BonitaSoft S.A.\n+ * BonitaSoft, 32 rue Gustave Eiffel - 38000 Grenoble\n+ * This library is free software; you can redistribute it and/or modify it under the terms\n+ * of the GNU Lesser General Public License as published by the Free Software Foundation\n+ * version 2.1 of the License.\n+ * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;\n+ * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n+ * See the GNU Lesser General Public License for more details.\n+ * You should have received a copy of the GNU Lesser General Public License along with this\n+ * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth\n+ * Floor, Boston, MA 02110-1301, USA.\n+ ******************************************************************************/\n+\n+package org.bonitasoft.engine.api.impl.transaction.actor;\n+\n+import static org.assertj.core.api.Assertions.assertThat;\n+\n+import java.io.InputStream;\n+\n+import org.apache.commons.io.IOUtils;\n+import org.bonitasoft.engine.bpm.bar.actorMapping.Actor;\n+import org.bonitasoft.engine.bpm.bar.actorMapping.ActorMapping;\n+import org.bonitasoft.engine.persistence.SBonitaReadException;\n+import org.junit.Test;\n+\n+/**\n+ * Created by mazourd on 03/07/15.\n+ */\n+public class ImportActorMappingTest {","path":"bpm/bonita-core/bonita-process-engine/src/test/java/org/bonitasoft/engine/api/impl/transaction/actor/ImportActorMappingTest.java","position":30,"original_position":30,"commit_id":"4f99df55ac76d92c98d2bc494282a3b35c0daa19","original_commit_id":"4f99df55ac76d92c98d2bc494282a3b35c0daa19","user":{"login":"cpuy","id":1671164,"avatar_url":"https://avatars.githubusercontent.com/u/1671164?v=3","gravatar_id":"","url":"https://api.github.com/users/cpuy","html_url":"https://github.com/cpuy","followers_url":"https://api.github.com/users/cpuy/followers","following_url":"https://api.github.com/users/cpuy/following{/other_user}","gists_url":"https://api.github.com/users/cpuy/gists{/gist_id}","starred_url":"https://api.github.com/users/cpuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpuy/subscriptions","organizations_url":"https://api.github.com/users/cpuy/orgs","repos_url":"https://api.github.com/users/cpuy/repos","events_url":"https://api.github.com/users/cpuy/events{/privacy}","received_events_url":"https://api.github.com/users/cpuy/received_events","type":"User","site_admin":false},"body":"Same remark than above","created_at":"2015-08-04T08:30:18Z","updated_at":"2015-08-04T08:30:18Z","html_url":"https://github.com/bonitasoft/bonita-engine/pull/135#discussion_r36167094","pull_request_url":"https://api.github.com/repos/bonitasoft/bonita-engine/pulls/135","_links":{"self":{"href":"https://api.github.com/repos/bonitasoft/bonita-engine/pulls/comments/36167094"},"html":{"href":"https://github.com/bonitasoft/bonita-engine/pull/135#discussion_r36167094"},"pull_request":{"href":"https://api.github.com/repos/bonitasoft/bonita-engine/pulls/135"}}},"pull_request":{"url":"https://api.github.com/repos/bonitasoft/bonita-engine/pulls/135","id":40122762,"html_url":"https://github.com/bonitasoft/bonita-engine/pull/135","diff_url":"https://github.com/bonitasoft/bonita-engine/pull/135.diff","patch_url":"https://github.com/bonitasoft/bonita-engine/pull/135.patch","issue_url":"https://api.github.com/repos/bonitasoft/bonita-engine/issues/135","number":135,"state":"open","locked":false,"title":"Feat/xml merge actor mapping","user":{"login":"bonita-stage","id":13046118,"avatar_url":"https://avatars.githubusercontent.com/u/13046118?v=3","gravatar_id":"","url":"https://api.github.com/users/bonita-stage","html_url":"https://github.com/bonita-stage","followers_url":"https://api.github.com/users/bonita-stage/followers","following_url":"https://api.github.com/users/bonita-stage/following{/other_user}","gists_url":"https://api.github.com/users/bonita-stage/gists{/gist_id}","starred_url":"https://api.github.com/users/bonita-stage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonita-stage/subscriptions","organizations_url":"https://api.github.com/users/bonita-stage/orgs","repos_url":"https://api.github.com/users/bonita-stage/repos","events_url":"https://api.github.com/users/bonita-stage/events{/privacy}","received_events_url":"https://api.github.com/users/bonita-stage/received_events","type":"User","site_admin":false},"body":"Replaced the \"handmade\" reading of actor-mapping Xml files, and generation of associated java classes,  by a jaxb automatically generated one. Consequently deleted the now useless actormappingbinding and actorbinding classes, as well as the getactormappingparser method. + Changed the way they are stored in the Bars: they are now stored as java objects and not as xmls, and the serialisation/deserialisation now happens in the client part of the process and not the server part.","created_at":"2015-07-16T12:17:53Z","updated_at":"2015-08-04T08:30:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96522ec8f16d47d81f1eda16a4fc6015eb508f36","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bonitasoft/bonita-engine/pulls/135/commits","review_comments_url":"https://api.github.com/repos/bonitasoft/bonita-engine/pulls/135/comments","review_comment_url":"https://api.github.com/repos/bonitasoft/bonita-engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bonitasoft/bonita-engine/issues/135/comments","statuses_url":"https://api.github.com/repos/bonitasoft/bonita-engine/statuses/4f99df55ac76d92c98d2bc494282a3b35c0daa19","head":{"label":"bonitasoft:feat/xml_merge_actor_mapping","ref":"feat/xml_merge_actor_mapping","sha":"4f99df55ac76d92c98d2bc494282a3b35c0daa19","user":{"login":"bonitasoft","id":4619712,"avatar_url":"https://avatars.githubusercontent.com/u/4619712?v=3","gravatar_id":"","url":"https://api.github.com/users/bonitasoft","html_url":"https://github.com/bonitasoft","followers_url":"https://api.github.com/users/bonitasoft/followers","following_url":"https://api.github.com/users/bonitasoft/following{/other_user}","gists_url":"https://api.github.com/users/bonitasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bonitasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonitasoft/subscriptions","organizations_url":"https://api.github.com/users/bonitasoft/orgs","repos_url":"https://api.github.com/users/bonitasoft/repos","events_url":"https://api.github.com/users/bonitasoft/events{/privacy}","received_events_url":"https://api.github.com/users/bonitasoft/received_events","type":"Organization","site_admin":false},"repo":{"id":11125081,"name":"bonita-engine","full_name":"bonitasoft/bonita-engine","owner":{"login":"bonitasoft","id":4619712,"avatar_url":"https://avatars.githubusercontent.com/u/4619712?v=3","gravatar_id":"","url":"https://api.github.com/users/bonitasoft","html_url":"https://github.com/bonitasoft","followers_url":"https://api.github.com/users/bonitasoft/followers","following_url":"https://api.github.com/users/bonitasoft/following{/other_user}","gists_url":"https://api.github.com/users/bonitasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bonitasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonitasoft/subscriptions","organizations_url":"https://api.github.com/users/bonitasoft/orgs","repos_url":"https://api.github.com/users/bonitasoft/repos","events_url":"https://api.github.com/users/bonitasoft/events{/privacy}","received_events_url":"https://api.github.com/users/bonitasoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bonitasoft/bonita-engine","description":"","fork":false,"url":"https://api.github.com/repos/bonitasoft/bonita-engine","forks_url":"https://api.github.com/repos/bonitasoft/bonita-engine/forks","keys_url":"https://api.github.com/repos/bonitasoft/bonita-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bonitasoft/bonita-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bonitasoft/bonita-engine/teams","hooks_url":"https://api.github.com/repos/bonitasoft/bonita-engine/hooks","issue_events_url":"https://api.github.com/repos/bonitasoft/bonita-engine/issues/events{/number}","events_url":"https://api.github.com/repos/bonitasoft/bonita-engine/events","assignees_url":"https://api.github.com/repos/bonitasoft/bonita-engine/assignees{/user}","branches_url":"https://api.github.com/repos/bonitasoft/bonita-engine/branches{/branch}","tags_url":"https://api.github.com/repos/bonitasoft/bonita-engine/tags","blobs_url":"https://api.github.com/repos/bonitasoft/bonita-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bonitasoft/bonita-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bonitasoft/bonita-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/bonitasoft/bonita-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bonitasoft/bonita-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/bonitasoft/bonita-engine/languages","stargazers_url":"https://api.github.com/repos/bonitasoft/bonita-engine/stargazers","contributors_url":"https://api.github.com/repos/bonitasoft/bonita-engine/contributors","subscribers_url":"https://api.github.com/repos/bonitasoft/bonita-engine/subscribers","subscription_url":"https://api.github.com/repos/bonitasoft/bonita-engine/subscription","commits_url":"https://api.github.com/repos/bonitasoft/bonita-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/bonitasoft/bonita-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/bonitasoft/bonita-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/bonitasoft/bonita-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/bonitasoft/bonita-engine/contents/{+path}","compare_url":"https://api.github.com/repos/bonitasoft/bonita-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bonitasoft/bonita-engine/merges","archive_url":"https://api.github.com/repos/bonitasoft/bonita-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bonitasoft/bonita-engine/downloads","issues_url":"https://api.github.com/repos/bonitasoft/bonita-engine/issues{/number}","pulls_url":"https://api.github.com/repos/bonitasoft/bonita-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/bonitasoft/bonita-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/bonitasoft/bonita-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bonitasoft/bonita-engine/labels{/name}","releases_url":"https://api.github.com/repos/bonitasoft/bonita-engine/releases{/id}","created_at":"2013-07-02T13:06:27Z","updated_at":"2015-07-22T13:37:18Z","pushed_at":"2015-08-04T08:05:48Z","git_url":"git://github.com/bonitasoft/bonita-engine.git","ssh_url":"git@github.com:bonitasoft/bonita-engine.git","clone_url":"https://github.com/bonitasoft/bonita-engine.git","svn_url":"https://github.com/bonitasoft/bonita-engine","homepage":"http://community.bonitasoft.com/","size":488152,"stargazers_count":35,"watchers_count":35,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":6,"forks":34,"open_issues":6,"watchers":35,"default_branch":"master"}},"base":{"label":"bonitasoft:MasterBugFixing","ref":"MasterBugFixing","sha":"f035990aa5a33816b73b9382d154df07f8e6def1","user":{"login":"bonitasoft","id":4619712,"avatar_url":"https://avatars.githubusercontent.com/u/4619712?v=3","gravatar_id":"","url":"https://api.github.com/users/bonitasoft","html_url":"https://github.com/bonitasoft","followers_url":"https://api.github.com/users/bonitasoft/followers","following_url":"https://api.github.com/users/bonitasoft/following{/other_user}","gists_url":"https://api.github.com/users/bonitasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bonitasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonitasoft/subscriptions","organizations_url":"https://api.github.com/users/bonitasoft/orgs","repos_url":"https://api.github.com/users/bonitasoft/repos","events_url":"https://api.github.com/users/bonitasoft/events{/privacy}","received_events_url":"https://api.github.com/users/bonitasoft/received_events","type":"Organization","site_admin":false},"repo":{"id":11125081,"name":"bonita-engine","full_name":"bonitasoft/bonita-engine","owner":{"login":"bonitasoft","id":4619712,"avatar_url":"https://avatars.githubusercontent.com/u/4619712?v=3","gravatar_id":"","url":"https://api.github.com/users/bonitasoft","html_url":"https://github.com/bonitasoft","followers_url":"https://api.github.com/users/bonitasoft/followers","following_url":"https://api.github.com/users/bonitasoft/following{/other_user}","gists_url":"https://api.github.com/users/bonitasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bonitasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonitasoft/subscriptions","organizations_url":"https://api.github.com/users/bonitasoft/orgs","repos_url":"https://api.github.com/users/bonitasoft/repos","events_url":"https://api.github.com/users/bonitasoft/events{/privacy}","received_events_url":"https://api.github.com/users/bonitasoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bonitasoft/bonita-engine","description":"","fork":false,"url":"https://api.github.com/repos/bonitasoft/bonita-engine","forks_url":"https://api.github.com/repos/bonitasoft/bonita-engine/forks","keys_url":"https://api.github.com/repos/bonitasoft/bonita-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bonitasoft/bonita-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bonitasoft/bonita-engine/teams","hooks_url":"https://api.github.com/repos/bonitasoft/bonita-engine/hooks","issue_events_url":"https://api.github.com/repos/bonitasoft/bonita-engine/issues/events{/number}","events_url":"https://api.github.com/repos/bonitasoft/bonita-engine/events","assignees_url":"https://api.github.com/repos/bonitasoft/bonita-engine/assignees{/user}","branches_url":"https://api.github.com/repos/bonitasoft/bonita-engine/branches{/branch}","tags_url":"https://api.github.com/repos/bonitasoft/bonita-engine/tags","blobs_url":"https://api.github.com/repos/bonitasoft/bonita-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bonitasoft/bonita-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bonitasoft/bonita-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/bonitasoft/bonita-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bonitasoft/bonita-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/bonitasoft/bonita-engine/languages","stargazers_url":"https://api.github.com/repos/bonitasoft/bonita-engine/stargazers","contributors_url":"https://api.github.com/repos/bonitasoft/bonita-engine/contributors","subscribers_url":"https://api.github.com/repos/bonitasoft/bonita-engine/subscribers","subscription_url":"https://api.github.com/repos/bonitasoft/bonita-engine/subscription","commits_url":"https://api.github.com/repos/bonitasoft/bonita-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/bonitasoft/bonita-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/bonitasoft/bonita-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/bonitasoft/bonita-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/bonitasoft/bonita-engine/contents/{+path}","compare_url":"https://api.github.com/repos/bonitasoft/bonita-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bonitasoft/bonita-engine/merges","archive_url":"https://api.github.com/repos/bonitasoft/bonita-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bonitasoft/bonita-engine/downloads","issues_url":"https://api.github.com/repos/bonitasoft/bonita-engine/issues{/number}","pulls_url":"https://api.github.com/repos/bonitasoft/bonita-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/bonitasoft/bonita-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/bonitasoft/bonita-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bonitasoft/bonita-engine/labels{/name}","releases_url":"https://api.github.com/repos/bonitasoft/bonita-engine/releases{/id}","created_at":"2013-07-02T13:06:27Z","updated_at":"2015-07-22T13:37:18Z","pushed_at":"2015-08-04T08:05:48Z","git_url":"git://github.com/bonitasoft/bonita-engine.git","ssh_url":"git@github.com:bonitasoft/bonita-engine.git","clone_url":"https://github.com/bonitasoft/bonita-engine.git","svn_url":"https://github.com/bonitasoft/bonita-engine","homepage":"http://community.bonitasoft.com/","size":488152,"stargazers_count":35,"watchers_count":35,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":6,"forks":34,"open_issues":6,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bonitasoft/bonita-engine/pulls/135"},"html":{"href":"https://github.com/bonitasoft/bonita-engine/pull/135"},"issue":{"href":"https://api.github.com/repos/bonitasoft/bonita-engine/issues/135"},"comments":{"href":"https://api.github.com/repos/bonitasoft/bonita-engine/issues/135/comments"},"review_comments":{"href":"https://api.github.com/repos/bonitasoft/bonita-engine/pulls/135/comments"},"review_comment":{"href":"https://api.github.com/repos/bonitasoft/bonita-engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bonitasoft/bonita-engine/pulls/135/commits"},"statuses":{"href":"https://api.github.com/repos/bonitasoft/bonita-engine/statuses/4f99df55ac76d92c98d2bc494282a3b35c0daa19"}}}}