{"action":"created","comment":{"url":"https://api.github.com/repos/droolsjbpm/drools/pulls/comments/93510353","pull_request_review_id":14038743,"id":93510353,"diff_hunk":"@@ -0,0 +1,66 @@\n+package org.drools.testcoverage.regression;\n+\n+import org.drools.testcoverage.common.util.KieBaseUtil;\n+import org.drools.testcoverage.common.util.TestConstants;\n+import org.junit.Test;\n+import org.kie.api.KieServices;\n+import org.kie.api.definition.type.Position;\n+import org.kie.api.io.Resource;\n+\n+import java.io.StringReader;\n+\n+/**\n+ * Tests merging the POJO annotations (e.g. @Position) with fact declaration in\n+ * DRL.\n+ */\n+// @Test(groups = {\"bre\", \"regression\"})\n+public class POJOAnnotationMergeTest {\n+\n+    private static final String EVENT_CLASS_NAME = PositionAnnotatedEvent.class.getCanonicalName();\n+\n+    // should add metadata to metadata already defined in POJO\n+    private static final String DRL = \"package org.test \\n\" + \"declare \" + EVENT_CLASS_NAME + \"\\n\"\n+            + \"    @role(event)\\n\" + \"end \\n\" + \"rule 'sample rule' \\n\" + \"when \\n\" + \"  \" + EVENT_CLASS_NAME\n+            + \"( 'value1', 'value2'; ) \\n\" + \"then \\n\" + \"end \\n\";","path":"drools-test-coverage/test-suite/src/test/java/org/drools/testcoverage/regression/POJOAnnotationMergeTest.java","position":24,"original_position":24,"commit_id":"afbd82d9155db33af2653cb063235c73d2c68591","original_commit_id":"afbd82d9155db33af2653cb063235c73d2c68591","user":{"login":"triceo","id":247403,"avatar_url":"https://avatars.githubusercontent.com/u/247403?v=3","gravatar_id":"","url":"https://api.github.com/users/triceo","html_url":"https://github.com/triceo","followers_url":"https://api.github.com/users/triceo/followers","following_url":"https://api.github.com/users/triceo/following{/other_user}","gists_url":"https://api.github.com/users/triceo/gists{/gist_id}","starred_url":"https://api.github.com/users/triceo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triceo/subscriptions","organizations_url":"https://api.github.com/users/triceo/orgs","repos_url":"https://api.github.com/users/triceo/repos","events_url":"https://api.github.com/users/triceo/events{/privacy}","received_events_url":"https://api.github.com/users/triceo/received_events","type":"User","site_admin":false},"body":"Any reason, why this rule is formatted differently than the previous rules?","created_at":"2016-12-21T20:07:29Z","updated_at":"2016-12-21T20:07:29Z","html_url":"https://github.com/droolsjbpm/drools/pull/1042#discussion_r93510353","pull_request_url":"https://api.github.com/repos/droolsjbpm/drools/pulls/1042","_links":{"self":{"href":"https://api.github.com/repos/droolsjbpm/drools/pulls/comments/93510353"},"html":{"href":"https://github.com/droolsjbpm/drools/pull/1042#discussion_r93510353"},"pull_request":{"href":"https://api.github.com/repos/droolsjbpm/drools/pulls/1042"}}},"pull_request":{"url":"https://api.github.com/repos/droolsjbpm/drools/pulls/1042","id":98976356,"html_url":"https://github.com/droolsjbpm/drools/pull/1042","diff_url":"https://github.com/droolsjbpm/drools/pull/1042.diff","patch_url":"https://github.com/droolsjbpm/drools/pull/1042.patch","issue_url":"https://api.github.com/repos/droolsjbpm/drools/issues/1042","number":1042,"state":"open","locked":false,"title":"QE tests migration","user":{"login":"LuboTerifaj","id":12122769,"avatar_url":"https://avatars.githubusercontent.com/u/12122769?v=3","gravatar_id":"","url":"https://api.github.com/users/LuboTerifaj","html_url":"https://github.com/LuboTerifaj","followers_url":"https://api.github.com/users/LuboTerifaj/followers","following_url":"https://api.github.com/users/LuboTerifaj/following{/other_user}","gists_url":"https://api.github.com/users/LuboTerifaj/gists{/gist_id}","starred_url":"https://api.github.com/users/LuboTerifaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuboTerifaj/subscriptions","organizations_url":"https://api.github.com/users/LuboTerifaj/orgs","repos_url":"https://api.github.com/users/LuboTerifaj/repos","events_url":"https://api.github.com/users/LuboTerifaj/events{/privacy}","received_events_url":"https://api.github.com/users/LuboTerifaj/received_events","type":"User","site_admin":false},"body":"Migrated tests from regression package in QE test suite.","created_at":"2016-12-21T17:48:20Z","updated_at":"2016-12-21T20:16:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51dd7ce74c129fa5cfd766a9a538487346147065","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/droolsjbpm/drools/pulls/1042/commits","review_comments_url":"https://api.github.com/repos/droolsjbpm/drools/pulls/1042/comments","review_comment_url":"https://api.github.com/repos/droolsjbpm/drools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/droolsjbpm/drools/issues/1042/comments","statuses_url":"https://api.github.com/repos/droolsjbpm/drools/statuses/afbd82d9155db33af2653cb063235c73d2c68591","head":{"label":"LuboTerifaj:regression-tests-migration","ref":"regression-tests-migration","sha":"afbd82d9155db33af2653cb063235c73d2c68591","user":{"login":"LuboTerifaj","id":12122769,"avatar_url":"https://avatars.githubusercontent.com/u/12122769?v=3","gravatar_id":"","url":"https://api.github.com/users/LuboTerifaj","html_url":"https://github.com/LuboTerifaj","followers_url":"https://api.github.com/users/LuboTerifaj/followers","following_url":"https://api.github.com/users/LuboTerifaj/following{/other_user}","gists_url":"https://api.github.com/users/LuboTerifaj/gists{/gist_id}","starred_url":"https://api.github.com/users/LuboTerifaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuboTerifaj/subscriptions","organizations_url":"https://api.github.com/users/LuboTerifaj/orgs","repos_url":"https://api.github.com/users/LuboTerifaj/repos","events_url":"https://api.github.com/users/LuboTerifaj/events{/privacy}","received_events_url":"https://api.github.com/users/LuboTerifaj/received_events","type":"User","site_admin":false},"repo":{"id":68004543,"name":"drools","full_name":"LuboTerifaj/drools","owner":{"login":"LuboTerifaj","id":12122769,"avatar_url":"https://avatars.githubusercontent.com/u/12122769?v=3","gravatar_id":"","url":"https://api.github.com/users/LuboTerifaj","html_url":"https://github.com/LuboTerifaj","followers_url":"https://api.github.com/users/LuboTerifaj/followers","following_url":"https://api.github.com/users/LuboTerifaj/following{/other_user}","gists_url":"https://api.github.com/users/LuboTerifaj/gists{/gist_id}","starred_url":"https://api.github.com/users/LuboTerifaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuboTerifaj/subscriptions","organizations_url":"https://api.github.com/users/LuboTerifaj/orgs","repos_url":"https://api.github.com/users/LuboTerifaj/repos","events_url":"https://api.github.com/users/LuboTerifaj/events{/privacy}","received_events_url":"https://api.github.com/users/LuboTerifaj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LuboTerifaj/drools","description":"Drools Expert is the rule engine and Drools Fusion does complex event processing (CEP).","fork":true,"url":"https://api.github.com/repos/LuboTerifaj/drools","forks_url":"https://api.github.com/repos/LuboTerifaj/drools/forks","keys_url":"https://api.github.com/repos/LuboTerifaj/drools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LuboTerifaj/drools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LuboTerifaj/drools/teams","hooks_url":"https://api.github.com/repos/LuboTerifaj/drools/hooks","issue_events_url":"https://api.github.com/repos/LuboTerifaj/drools/issues/events{/number}","events_url":"https://api.github.com/repos/LuboTerifaj/drools/events","assignees_url":"https://api.github.com/repos/LuboTerifaj/drools/assignees{/user}","branches_url":"https://api.github.com/repos/LuboTerifaj/drools/branches{/branch}","tags_url":"https://api.github.com/repos/LuboTerifaj/drools/tags","blobs_url":"https://api.github.com/repos/LuboTerifaj/drools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LuboTerifaj/drools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LuboTerifaj/drools/git/refs{/sha}","trees_url":"https://api.github.com/repos/LuboTerifaj/drools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LuboTerifaj/drools/statuses/{sha}","languages_url":"https://api.github.com/repos/LuboTerifaj/drools/languages","stargazers_url":"https://api.github.com/repos/LuboTerifaj/drools/stargazers","contributors_url":"https://api.github.com/repos/LuboTerifaj/drools/contributors","subscribers_url":"https://api.github.com/repos/LuboTerifaj/drools/subscribers","subscription_url":"https://api.github.com/repos/LuboTerifaj/drools/subscription","commits_url":"https://api.github.com/repos/LuboTerifaj/drools/commits{/sha}","git_commits_url":"https://api.github.com/repos/LuboTerifaj/drools/git/commits{/sha}","comments_url":"https://api.github.com/repos/LuboTerifaj/drools/comments{/number}","issue_comment_url":"https://api.github.com/repos/LuboTerifaj/drools/issues/comments{/number}","contents_url":"https://api.github.com/repos/LuboTerifaj/drools/contents/{+path}","compare_url":"https://api.github.com/repos/LuboTerifaj/drools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LuboTerifaj/drools/merges","archive_url":"https://api.github.com/repos/LuboTerifaj/drools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LuboTerifaj/drools/downloads","issues_url":"https://api.github.com/repos/LuboTerifaj/drools/issues{/number}","pulls_url":"https://api.github.com/repos/LuboTerifaj/drools/pulls{/number}","milestones_url":"https://api.github.com/repos/LuboTerifaj/drools/milestones{/number}","notifications_url":"https://api.github.com/repos/LuboTerifaj/drools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LuboTerifaj/drools/labels{/name}","releases_url":"https://api.github.com/repos/LuboTerifaj/drools/releases{/id}","deployments_url":"https://api.github.com/repos/LuboTerifaj/drools/deployments","created_at":"2016-09-12T11:50:58Z","updated_at":"2016-09-12T11:51:15Z","pushed_at":"2016-12-21T17:43:56Z","git_url":"git://github.com/LuboTerifaj/drools.git","ssh_url":"git@github.com:LuboTerifaj/drools.git","clone_url":"https://github.com/LuboTerifaj/drools.git","svn_url":"https://github.com/LuboTerifaj/drools","homepage":"http://www.drools.org","size":141870,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"droolsjbpm:master","ref":"master","sha":"96779ad2985edc376e09bfee2e80ccb7eebef5bd","user":{"login":"droolsjbpm","id":517980,"avatar_url":"https://avatars.githubusercontent.com/u/517980?v=3","gravatar_id":"","url":"https://api.github.com/users/droolsjbpm","html_url":"https://github.com/droolsjbpm","followers_url":"https://api.github.com/users/droolsjbpm/followers","following_url":"https://api.github.com/users/droolsjbpm/following{/other_user}","gists_url":"https://api.github.com/users/droolsjbpm/gists{/gist_id}","starred_url":"https://api.github.com/users/droolsjbpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/droolsjbpm/subscriptions","organizations_url":"https://api.github.com/users/droolsjbpm/orgs","repos_url":"https://api.github.com/users/droolsjbpm/repos","events_url":"https://api.github.com/users/droolsjbpm/events{/privacy}","received_events_url":"https://api.github.com/users/droolsjbpm/received_events","type":"Organization","site_admin":false},"repo":{"id":1381673,"name":"drools","full_name":"droolsjbpm/drools","owner":{"login":"droolsjbpm","id":517980,"avatar_url":"https://avatars.githubusercontent.com/u/517980?v=3","gravatar_id":"","url":"https://api.github.com/users/droolsjbpm","html_url":"https://github.com/droolsjbpm","followers_url":"https://api.github.com/users/droolsjbpm/followers","following_url":"https://api.github.com/users/droolsjbpm/following{/other_user}","gists_url":"https://api.github.com/users/droolsjbpm/gists{/gist_id}","starred_url":"https://api.github.com/users/droolsjbpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/droolsjbpm/subscriptions","organizations_url":"https://api.github.com/users/droolsjbpm/orgs","repos_url":"https://api.github.com/users/droolsjbpm/repos","events_url":"https://api.github.com/users/droolsjbpm/events{/privacy}","received_events_url":"https://api.github.com/users/droolsjbpm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/droolsjbpm/drools","description":"Drools Expert is the rule engine and Drools Fusion does complex event processing (CEP).","fork":false,"url":"https://api.github.com/repos/droolsjbpm/drools","forks_url":"https://api.github.com/repos/droolsjbpm/drools/forks","keys_url":"https://api.github.com/repos/droolsjbpm/drools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/droolsjbpm/drools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/droolsjbpm/drools/teams","hooks_url":"https://api.github.com/repos/droolsjbpm/drools/hooks","issue_events_url":"https://api.github.com/repos/droolsjbpm/drools/issues/events{/number}","events_url":"https://api.github.com/repos/droolsjbpm/drools/events","assignees_url":"https://api.github.com/repos/droolsjbpm/drools/assignees{/user}","branches_url":"https://api.github.com/repos/droolsjbpm/drools/branches{/branch}","tags_url":"https://api.github.com/repos/droolsjbpm/drools/tags","blobs_url":"https://api.github.com/repos/droolsjbpm/drools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/droolsjbpm/drools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/droolsjbpm/drools/git/refs{/sha}","trees_url":"https://api.github.com/repos/droolsjbpm/drools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/droolsjbpm/drools/statuses/{sha}","languages_url":"https://api.github.com/repos/droolsjbpm/drools/languages","stargazers_url":"https://api.github.com/repos/droolsjbpm/drools/stargazers","contributors_url":"https://api.github.com/repos/droolsjbpm/drools/contributors","subscribers_url":"https://api.github.com/repos/droolsjbpm/drools/subscribers","subscription_url":"https://api.github.com/repos/droolsjbpm/drools/subscription","commits_url":"https://api.github.com/repos/droolsjbpm/drools/commits{/sha}","git_commits_url":"https://api.github.com/repos/droolsjbpm/drools/git/commits{/sha}","comments_url":"https://api.github.com/repos/droolsjbpm/drools/comments{/number}","issue_comment_url":"https://api.github.com/repos/droolsjbpm/drools/issues/comments{/number}","contents_url":"https://api.github.com/repos/droolsjbpm/drools/contents/{+path}","compare_url":"https://api.github.com/repos/droolsjbpm/drools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/droolsjbpm/drools/merges","archive_url":"https://api.github.com/repos/droolsjbpm/drools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/droolsjbpm/drools/downloads","issues_url":"https://api.github.com/repos/droolsjbpm/drools/issues{/number}","pulls_url":"https://api.github.com/repos/droolsjbpm/drools/pulls{/number}","milestones_url":"https://api.github.com/repos/droolsjbpm/drools/milestones{/number}","notifications_url":"https://api.github.com/repos/droolsjbpm/drools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/droolsjbpm/drools/labels{/name}","releases_url":"https://api.github.com/repos/droolsjbpm/drools/releases{/id}","deployments_url":"https://api.github.com/repos/droolsjbpm/drools/deployments","created_at":"2011-02-18T08:37:05Z","updated_at":"2016-12-20T09:05:43Z","pushed_at":"2016-12-21T17:48:20Z","git_url":"git://github.com/droolsjbpm/drools.git","ssh_url":"git@github.com:droolsjbpm/drools.git","clone_url":"https://github.com/droolsjbpm/drools.git","svn_url":"https://github.com/droolsjbpm/drools","homepage":"http://www.drools.org","size":142068,"stargazers_count":763,"watchers_count":763,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":982,"mirror_url":null,"open_issues_count":7,"forks":982,"open_issues":7,"watchers":763,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/droolsjbpm/drools/pulls/1042"},"html":{"href":"https://github.com/droolsjbpm/drools/pull/1042"},"issue":{"href":"https://api.github.com/repos/droolsjbpm/drools/issues/1042"},"comments":{"href":"https://api.github.com/repos/droolsjbpm/drools/issues/1042/comments"},"review_comments":{"href":"https://api.github.com/repos/droolsjbpm/drools/pulls/1042/comments"},"review_comment":{"href":"https://api.github.com/repos/droolsjbpm/drools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/droolsjbpm/drools/pulls/1042/commits"},"statuses":{"href":"https://api.github.com/repos/droolsjbpm/drools/statuses/afbd82d9155db33af2653cb063235c73d2c68591"}}}}
{"actor":{"display_login":"triceo"}}