{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/product-bps/pulls/comments/24663369","id":24663369,"diff_hunk":"@@ -0,0 +1,684 @@\n+package org.wso2.bps.integration.common.clients.bpmn;\n+\n+import org.apache.commons.logging.LogFactory;\n+import org.apache.http.HttpEntity;\n+import org.apache.http.HttpHost;\n+import org.apache.http.HttpResponse;\n+import org.apache.http.auth.AuthScope;\n+import org.apache.http.auth.UsernamePasswordCredentials;\n+import org.apache.http.client.CredentialsProvider;\n+import org.apache.http.client.methods.*;\n+import org.apache.http.entity.ContentType;\n+import org.apache.http.entity.StringEntity;\n+import org.apache.http.entity.mime.MultipartEntityBuilder;\n+import org.apache.http.impl.client.BasicCredentialsProvider;\n+import org.apache.http.impl.client.DefaultHttpClient;\n+import org.apache.http.util.EntityUtils;\n+import org.json.JSONArray;\n+import org.json.JSONObject;\n+import org.apache.commons.logging.Log;\n+\n+import java.io.File;\n+\n+public class ActivitiRestClient {\n+\n+\tprivate final static String username = \"admin\";\n+\tprivate final static String password = \"admin\";\n+\tprivate final static String userClaim = \"paul\";\n+\tprivate final static String userDelegate = \"will\";\n+\tprivate final static int port = 9763 ;\n+\tprivate final static String preURL = \"http://localhost:\"+port+\"/bpmnrest/\";\n+\tprivate static final Log log = LogFactory.getLog(ActivitiRestClient.class);","path":"modules/integration/tests-common/admin-clients/src/main/java/org/wso2/bps/integration/common/clients/bpmn/ActivitiRestClient.java","position":31,"original_position":31,"commit_id":"4053fe373ff86be2f7592c99592026bb1de6c0d1","original_commit_id":"4053fe373ff86be2f7592c99592026bb1de6c0d1","user":{"login":"shivabalachandran","id":8776632,"avatar_url":"https://avatars.githubusercontent.com/u/8776632?v=3","gravatar_id":"","url":"https://api.github.com/users/shivabalachandran","html_url":"https://github.com/shivabalachandran","followers_url":"https://api.github.com/users/shivabalachandran/followers","following_url":"https://api.github.com/users/shivabalachandran/following{/other_user}","gists_url":"https://api.github.com/users/shivabalachandran/gists{/gist_id}","starred_url":"https://api.github.com/users/shivabalachandran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivabalachandran/subscriptions","organizations_url":"https://api.github.com/users/shivabalachandran/orgs","repos_url":"https://api.github.com/users/shivabalachandran/repos","events_url":"https://api.github.com/users/shivabalachandran/events{/privacy}","received_events_url":"https://api.github.com/users/shivabalachandran/received_events","type":"User","site_admin":false},"body":"Fixed in the latest commit. ","created_at":"2015-02-13T13:24:53Z","updated_at":"2015-02-13T13:24:53Z","html_url":"https://github.com/wso2/product-bps/pull/16#discussion_r24663369","pull_request_url":"https://api.github.com/repos/wso2/product-bps/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/wso2/product-bps/pulls/comments/24663369"},"html":{"href":"https://github.com/wso2/product-bps/pull/16#discussion_r24663369"},"pull_request":{"href":"https://api.github.com/repos/wso2/product-bps/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/product-bps/pulls/16","id":28993521,"html_url":"https://github.com/wso2/product-bps/pull/16","diff_url":"https://github.com/wso2/product-bps/pull/16.diff","patch_url":"https://github.com/wso2/product-bps/pull/16.patch","issue_url":"https://api.github.com/repos/wso2/product-bps/issues/16","number":16,"state":"open","locked":false,"title":"BPMN Integration Testcases","user":{"login":"shivabalachandran","id":8776632,"avatar_url":"https://avatars.githubusercontent.com/u/8776632?v=3","gravatar_id":"","url":"https://api.github.com/users/shivabalachandran","html_url":"https://github.com/shivabalachandran","followers_url":"https://api.github.com/users/shivabalachandran/followers","following_url":"https://api.github.com/users/shivabalachandran/following{/other_user}","gists_url":"https://api.github.com/users/shivabalachandran/gists{/gist_id}","starred_url":"https://api.github.com/users/shivabalachandran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivabalachandran/subscriptions","organizations_url":"https://api.github.com/users/shivabalachandran/orgs","repos_url":"https://api.github.com/users/shivabalachandran/repos","events_url":"https://api.github.com/users/shivabalachandran/events{/privacy}","received_events_url":"https://api.github.com/users/shivabalachandran/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-10T09:57:39Z","updated_at":"2015-02-13T13:24:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d19c1fee9d4403cab4f9fc82a7c69870939ea99a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/product-bps/pulls/16/commits","review_comments_url":"https://api.github.com/repos/wso2/product-bps/pulls/16/comments","review_comment_url":"https://api.github.com/repos/wso2/product-bps/pulls/comments/{number}","comments_url":"https://api.github.com/repos/wso2/product-bps/issues/16/comments","statuses_url":"https://api.github.com/repos/wso2/product-bps/statuses/4053fe373ff86be2f7592c99592026bb1de6c0d1","head":{"label":"shivabalachandran:master","ref":"master","sha":"4053fe373ff86be2f7592c99592026bb1de6c0d1","user":{"login":"shivabalachandran","id":8776632,"avatar_url":"https://avatars.githubusercontent.com/u/8776632?v=3","gravatar_id":"","url":"https://api.github.com/users/shivabalachandran","html_url":"https://github.com/shivabalachandran","followers_url":"https://api.github.com/users/shivabalachandran/followers","following_url":"https://api.github.com/users/shivabalachandran/following{/other_user}","gists_url":"https://api.github.com/users/shivabalachandran/gists{/gist_id}","starred_url":"https://api.github.com/users/shivabalachandran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivabalachandran/subscriptions","organizations_url":"https://api.github.com/users/shivabalachandran/orgs","repos_url":"https://api.github.com/users/shivabalachandran/repos","events_url":"https://api.github.com/users/shivabalachandran/events{/privacy}","received_events_url":"https://api.github.com/users/shivabalachandran/received_events","type":"User","site_admin":false},"repo":{"id":30582916,"name":"product-bps","full_name":"shivabalachandran/product-bps","owner":{"login":"shivabalachandran","id":8776632,"avatar_url":"https://avatars.githubusercontent.com/u/8776632?v=3","gravatar_id":"","url":"https://api.github.com/users/shivabalachandran","html_url":"https://github.com/shivabalachandran","followers_url":"https://api.github.com/users/shivabalachandran/followers","following_url":"https://api.github.com/users/shivabalachandran/following{/other_user}","gists_url":"https://api.github.com/users/shivabalachandran/gists{/gist_id}","starred_url":"https://api.github.com/users/shivabalachandran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivabalachandran/subscriptions","organizations_url":"https://api.github.com/users/shivabalachandran/orgs","repos_url":"https://api.github.com/users/shivabalachandran/repos","events_url":"https://api.github.com/users/shivabalachandran/events{/privacy}","received_events_url":"https://api.github.com/users/shivabalachandran/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shivabalachandran/product-bps","description":"","fork":true,"url":"https://api.github.com/repos/shivabalachandran/product-bps","forks_url":"https://api.github.com/repos/shivabalachandran/product-bps/forks","keys_url":"https://api.github.com/repos/shivabalachandran/product-bps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shivabalachandran/product-bps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shivabalachandran/product-bps/teams","hooks_url":"https://api.github.com/repos/shivabalachandran/product-bps/hooks","issue_events_url":"https://api.github.com/repos/shivabalachandran/product-bps/issues/events{/number}","events_url":"https://api.github.com/repos/shivabalachandran/product-bps/events","assignees_url":"https://api.github.com/repos/shivabalachandran/product-bps/assignees{/user}","branches_url":"https://api.github.com/repos/shivabalachandran/product-bps/branches{/branch}","tags_url":"https://api.github.com/repos/shivabalachandran/product-bps/tags","blobs_url":"https://api.github.com/repos/shivabalachandran/product-bps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shivabalachandran/product-bps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shivabalachandran/product-bps/git/refs{/sha}","trees_url":"https://api.github.com/repos/shivabalachandran/product-bps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shivabalachandran/product-bps/statuses/{sha}","languages_url":"https://api.github.com/repos/shivabalachandran/product-bps/languages","stargazers_url":"https://api.github.com/repos/shivabalachandran/product-bps/stargazers","contributors_url":"https://api.github.com/repos/shivabalachandran/product-bps/contributors","subscribers_url":"https://api.github.com/repos/shivabalachandran/product-bps/subscribers","subscription_url":"https://api.github.com/repos/shivabalachandran/product-bps/subscription","commits_url":"https://api.github.com/repos/shivabalachandran/product-bps/commits{/sha}","git_commits_url":"https://api.github.com/repos/shivabalachandran/product-bps/git/commits{/sha}","comments_url":"https://api.github.com/repos/shivabalachandran/product-bps/comments{/number}","issue_comment_url":"https://api.github.com/repos/shivabalachandran/product-bps/issues/comments/{number}","contents_url":"https://api.github.com/repos/shivabalachandran/product-bps/contents/{+path}","compare_url":"https://api.github.com/repos/shivabalachandran/product-bps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shivabalachandran/product-bps/merges","archive_url":"https://api.github.com/repos/shivabalachandran/product-bps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shivabalachandran/product-bps/downloads","issues_url":"https://api.github.com/repos/shivabalachandran/product-bps/issues{/number}","pulls_url":"https://api.github.com/repos/shivabalachandran/product-bps/pulls{/number}","milestones_url":"https://api.github.com/repos/shivabalachandran/product-bps/milestones{/number}","notifications_url":"https://api.github.com/repos/shivabalachandran/product-bps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shivabalachandran/product-bps/labels{/name}","releases_url":"https://api.github.com/repos/shivabalachandran/product-bps/releases{/id}","created_at":"2015-02-10T08:42:24Z","updated_at":"2015-02-10T09:57:07Z","pushed_at":"2015-02-10T09:57:06Z","git_url":"git://github.com/shivabalachandran/product-bps.git","ssh_url":"git@github.com:shivabalachandran/product-bps.git","clone_url":"https://github.com/shivabalachandran/product-bps.git","svn_url":"https://github.com/shivabalachandran/product-bps","homepage":null,"size":12992,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"9335cefeebe790b830854ec20822edd6d2d12983","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":17127664,"name":"product-bps","full_name":"wso2/product-bps","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/product-bps","description":"","fork":false,"url":"https://api.github.com/repos/wso2/product-bps","forks_url":"https://api.github.com/repos/wso2/product-bps/forks","keys_url":"https://api.github.com/repos/wso2/product-bps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/product-bps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/product-bps/teams","hooks_url":"https://api.github.com/repos/wso2/product-bps/hooks","issue_events_url":"https://api.github.com/repos/wso2/product-bps/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/product-bps/events","assignees_url":"https://api.github.com/repos/wso2/product-bps/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/product-bps/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/product-bps/tags","blobs_url":"https://api.github.com/repos/wso2/product-bps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/product-bps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/product-bps/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/product-bps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/product-bps/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/product-bps/languages","stargazers_url":"https://api.github.com/repos/wso2/product-bps/stargazers","contributors_url":"https://api.github.com/repos/wso2/product-bps/contributors","subscribers_url":"https://api.github.com/repos/wso2/product-bps/subscribers","subscription_url":"https://api.github.com/repos/wso2/product-bps/subscription","commits_url":"https://api.github.com/repos/wso2/product-bps/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/product-bps/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/product-bps/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/product-bps/issues/comments/{number}","contents_url":"https://api.github.com/repos/wso2/product-bps/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/product-bps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/product-bps/merges","archive_url":"https://api.github.com/repos/wso2/product-bps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/product-bps/downloads","issues_url":"https://api.github.com/repos/wso2/product-bps/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/product-bps/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/product-bps/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/product-bps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/product-bps/labels{/name}","releases_url":"https://api.github.com/repos/wso2/product-bps/releases{/id}","created_at":"2014-02-24T06:43:27Z","updated_at":"2015-02-09T07:25:25Z","pushed_at":"2015-02-09T07:25:25Z","git_url":"git://github.com/wso2/product-bps.git","ssh_url":"git@github.com:wso2/product-bps.git","clone_url":"https://github.com/wso2/product-bps.git","svn_url":"https://github.com/wso2/product-bps","homepage":null,"size":13329,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":1,"forks":17,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/product-bps/pulls/16"},"html":{"href":"https://github.com/wso2/product-bps/pull/16"},"issue":{"href":"https://api.github.com/repos/wso2/product-bps/issues/16"},"comments":{"href":"https://api.github.com/repos/wso2/product-bps/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/product-bps/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/product-bps/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/wso2/product-bps/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/product-bps/statuses/4053fe373ff86be2f7592c99592026bb1de6c0d1"}}}}