{"action":"created","comment":{"url":"https://api.github.com/repos/javaee-samples/javaee7-samples/pulls/comments/31040985","id":31040985,"diff_hunk":"@@ -0,0 +1,68 @@\n+package org.javaee7.cdi.instance;\n+\n+import org.jboss.arquillian.container.test.api.Deployment;\n+import org.jboss.arquillian.junit.Arquillian;\n+import org.jboss.shrinkwrap.api.Archive;\n+import org.jboss.shrinkwrap.api.ShrinkWrap;\n+import org.jboss.shrinkwrap.api.spec.JavaArchive;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+\n+import javax.enterprise.inject.Any;\n+import javax.enterprise.inject.Default;\n+import javax.enterprise.inject.Instance;\n+import javax.enterprise.util.AnnotationLiteral;\n+import javax.inject.Inject;\n+\n+import static org.hamcrest.CoreMatchers.instanceOf;\n+import static org.junit.Assert.*;\n+\n+/**\n+ * @author Radim Hanus\n+ */\n+@RunWith(Arquillian.class)\n+public class GreetingTest {\n+\t@Deployment\n+\tpublic static Archive<?> deploy() {\n+\t\treturn ShrinkWrap.create(JavaArchive.class)\n+\t\t\t\t.addClasses(Greeting.class, SimpleGreeting.class, FormalGreeting.class, Business.class, Personal.class)\n+\t\t\t\t.addAsManifestResource(\"beans.xml\");\n+\t}\n+\n+\t/**\n+\t * Container will assume built-in @Default qualifier here as well as for beans that don't declare a qualifier.\n+\t */\n+\t@Inject\n+\tprivate Instance<Greeting> defaultInstance;\n+\n+\t/**\n+\t * Qualifier @Personal is not qualifying any bean.\n+\t */\n+\t@Inject @Personal\n+\tprivate Instance<Greeting> personalInstance;\n+\n+\t/**\n+\t * Built-in qualifier @Any is assumed on each bean regardless other qualifiers specified.\n+\t */\n+\t@Inject @Any\n+\tprivate Instance<Greeting> anyInstance;\n+\n+\t@Test\n+\tpublic void test() throws Exception {","path":"cdi/instance-qualifiers/src/test/java/org/javaee7/cdi/instance/GreetingTest.java","position":51,"original_position":51,"commit_id":"70bf0f845d6dfca70080b600d4903caf7aecaf34","original_commit_id":"70bf0f845d6dfca70080b600d4903caf7aecaf34","user":{"login":"bartoszmajsak","id":719616,"avatar_url":"https://avatars.githubusercontent.com/u/719616?v=3","gravatar_id":"","url":"https://api.github.com/users/bartoszmajsak","html_url":"https://github.com/bartoszmajsak","followers_url":"https://api.github.com/users/bartoszmajsak/followers","following_url":"https://api.github.com/users/bartoszmajsak/following{/other_user}","gists_url":"https://api.github.com/users/bartoszmajsak/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszmajsak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszmajsak/subscriptions","organizations_url":"https://api.github.com/users/bartoszmajsak/orgs","repos_url":"https://api.github.com/users/bartoszmajsak/repos","events_url":"https://api.github.com/users/bartoszmajsak/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszmajsak/received_events","type":"User","site_admin":false},"body":"I think it would be better to split to smaller, descriptive tests. But I guess I'm too late to the party, as it is merged anyway.","created_at":"2015-05-26T14:49:19Z","updated_at":"2015-05-26T14:49:19Z","html_url":"https://github.com/javaee-samples/javaee7-samples/pull/305#discussion_r31040985","pull_request_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/pulls/305","_links":{"self":{"href":"https://api.github.com/repos/javaee-samples/javaee7-samples/pulls/comments/31040985"},"html":{"href":"https://github.com/javaee-samples/javaee7-samples/pull/305#discussion_r31040985"},"pull_request":{"href":"https://api.github.com/repos/javaee-samples/javaee7-samples/pulls/305"}}},"pull_request":{"url":"https://api.github.com/repos/javaee-samples/javaee7-samples/pulls/305","id":36208615,"html_url":"https://github.com/javaee-samples/javaee7-samples/pull/305","diff_url":"https://github.com/javaee-samples/javaee7-samples/pull/305.diff","patch_url":"https://github.com/javaee-samples/javaee7-samples/pull/305.patch","issue_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/issues/305","number":305,"state":"closed","locked":false,"title":"added cdi/instance","user":{"login":"rhanus","id":533867,"avatar_url":"https://avatars.githubusercontent.com/u/533867?v=3","gravatar_id":"","url":"https://api.github.com/users/rhanus","html_url":"https://github.com/rhanus","followers_url":"https://api.github.com/users/rhanus/followers","following_url":"https://api.github.com/users/rhanus/following{/other_user}","gists_url":"https://api.github.com/users/rhanus/gists{/gist_id}","starred_url":"https://api.github.com/users/rhanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhanus/subscriptions","organizations_url":"https://api.github.com/users/rhanus/orgs","repos_url":"https://api.github.com/users/rhanus/repos","events_url":"https://api.github.com/users/rhanus/events{/privacy}","received_events_url":"https://api.github.com/users/rhanus/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-26T14:35:44Z","updated_at":"2015-05-26T14:49:19Z","closed_at":"2015-05-26T14:47:39Z","merged_at":"2015-05-26T14:47:39Z","merge_commit_sha":"03c645b492587aa2c476e8f169ffea86adb888cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/pulls/305/commits","review_comments_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/pulls/305/comments","review_comment_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/issues/305/comments","statuses_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/statuses/70bf0f845d6dfca70080b600d4903caf7aecaf34","head":{"label":"rhanus:master","ref":"master","sha":"70bf0f845d6dfca70080b600d4903caf7aecaf34","user":{"login":"rhanus","id":533867,"avatar_url":"https://avatars.githubusercontent.com/u/533867?v=3","gravatar_id":"","url":"https://api.github.com/users/rhanus","html_url":"https://github.com/rhanus","followers_url":"https://api.github.com/users/rhanus/followers","following_url":"https://api.github.com/users/rhanus/following{/other_user}","gists_url":"https://api.github.com/users/rhanus/gists{/gist_id}","starred_url":"https://api.github.com/users/rhanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhanus/subscriptions","organizations_url":"https://api.github.com/users/rhanus/orgs","repos_url":"https://api.github.com/users/rhanus/repos","events_url":"https://api.github.com/users/rhanus/events{/privacy}","received_events_url":"https://api.github.com/users/rhanus/received_events","type":"User","site_admin":false},"repo":{"id":14981294,"name":"javaee7-samples","full_name":"rhanus/javaee7-samples","owner":{"login":"rhanus","id":533867,"avatar_url":"https://avatars.githubusercontent.com/u/533867?v=3","gravatar_id":"","url":"https://api.github.com/users/rhanus","html_url":"https://github.com/rhanus","followers_url":"https://api.github.com/users/rhanus/followers","following_url":"https://api.github.com/users/rhanus/following{/other_user}","gists_url":"https://api.github.com/users/rhanus/gists{/gist_id}","starred_url":"https://api.github.com/users/rhanus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhanus/subscriptions","organizations_url":"https://api.github.com/users/rhanus/orgs","repos_url":"https://api.github.com/users/rhanus/repos","events_url":"https://api.github.com/users/rhanus/events{/privacy}","received_events_url":"https://api.github.com/users/rhanus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rhanus/javaee7-samples","description":"Java EE 7 Samples","fork":true,"url":"https://api.github.com/repos/rhanus/javaee7-samples","forks_url":"https://api.github.com/repos/rhanus/javaee7-samples/forks","keys_url":"https://api.github.com/repos/rhanus/javaee7-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rhanus/javaee7-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rhanus/javaee7-samples/teams","hooks_url":"https://api.github.com/repos/rhanus/javaee7-samples/hooks","issue_events_url":"https://api.github.com/repos/rhanus/javaee7-samples/issues/events{/number}","events_url":"https://api.github.com/repos/rhanus/javaee7-samples/events","assignees_url":"https://api.github.com/repos/rhanus/javaee7-samples/assignees{/user}","branches_url":"https://api.github.com/repos/rhanus/javaee7-samples/branches{/branch}","tags_url":"https://api.github.com/repos/rhanus/javaee7-samples/tags","blobs_url":"https://api.github.com/repos/rhanus/javaee7-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rhanus/javaee7-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rhanus/javaee7-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/rhanus/javaee7-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rhanus/javaee7-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/rhanus/javaee7-samples/languages","stargazers_url":"https://api.github.com/repos/rhanus/javaee7-samples/stargazers","contributors_url":"https://api.github.com/repos/rhanus/javaee7-samples/contributors","subscribers_url":"https://api.github.com/repos/rhanus/javaee7-samples/subscribers","subscription_url":"https://api.github.com/repos/rhanus/javaee7-samples/subscription","commits_url":"https://api.github.com/repos/rhanus/javaee7-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/rhanus/javaee7-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/rhanus/javaee7-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/rhanus/javaee7-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/rhanus/javaee7-samples/contents/{+path}","compare_url":"https://api.github.com/repos/rhanus/javaee7-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rhanus/javaee7-samples/merges","archive_url":"https://api.github.com/repos/rhanus/javaee7-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rhanus/javaee7-samples/downloads","issues_url":"https://api.github.com/repos/rhanus/javaee7-samples/issues{/number}","pulls_url":"https://api.github.com/repos/rhanus/javaee7-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/rhanus/javaee7-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/rhanus/javaee7-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rhanus/javaee7-samples/labels{/name}","releases_url":"https://api.github.com/repos/rhanus/javaee7-samples/releases{/id}","created_at":"2013-12-06T11:34:05Z","updated_at":"2014-11-14T10:02:45Z","pushed_at":"2015-05-26T14:46:33Z","git_url":"git://github.com/rhanus/javaee7-samples.git","ssh_url":"git@github.com:rhanus/javaee7-samples.git","clone_url":"https://github.com/rhanus/javaee7-samples.git","svn_url":"https://github.com/rhanus/javaee7-samples","homepage":"https://arungupta.ci.cloudbees.com/","size":3656,"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":"javaee-samples:master","ref":"master","sha":"5dc614394e2d687e9ea614d170c2477fd2a0e0cc","user":{"login":"javaee-samples","id":6052086,"avatar_url":"https://avatars.githubusercontent.com/u/6052086?v=3","gravatar_id":"","url":"https://api.github.com/users/javaee-samples","html_url":"https://github.com/javaee-samples","followers_url":"https://api.github.com/users/javaee-samples/followers","following_url":"https://api.github.com/users/javaee-samples/following{/other_user}","gists_url":"https://api.github.com/users/javaee-samples/gists{/gist_id}","starred_url":"https://api.github.com/users/javaee-samples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javaee-samples/subscriptions","organizations_url":"https://api.github.com/users/javaee-samples/orgs","repos_url":"https://api.github.com/users/javaee-samples/repos","events_url":"https://api.github.com/users/javaee-samples/events{/privacy}","received_events_url":"https://api.github.com/users/javaee-samples/received_events","type":"Organization","site_admin":false},"repo":{"id":12414592,"name":"javaee7-samples","full_name":"javaee-samples/javaee7-samples","owner":{"login":"javaee-samples","id":6052086,"avatar_url":"https://avatars.githubusercontent.com/u/6052086?v=3","gravatar_id":"","url":"https://api.github.com/users/javaee-samples","html_url":"https://github.com/javaee-samples","followers_url":"https://api.github.com/users/javaee-samples/followers","following_url":"https://api.github.com/users/javaee-samples/following{/other_user}","gists_url":"https://api.github.com/users/javaee-samples/gists{/gist_id}","starred_url":"https://api.github.com/users/javaee-samples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javaee-samples/subscriptions","organizations_url":"https://api.github.com/users/javaee-samples/orgs","repos_url":"https://api.github.com/users/javaee-samples/repos","events_url":"https://api.github.com/users/javaee-samples/events{/privacy}","received_events_url":"https://api.github.com/users/javaee-samples/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/javaee-samples/javaee7-samples","description":"Java EE 7 Samples","fork":false,"url":"https://api.github.com/repos/javaee-samples/javaee7-samples","forks_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/forks","keys_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/teams","hooks_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/hooks","issue_events_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/issues/events{/number}","events_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/events","assignees_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/assignees{/user}","branches_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/branches{/branch}","tags_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/tags","blobs_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/languages","stargazers_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/stargazers","contributors_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/contributors","subscribers_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/subscribers","subscription_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/subscription","commits_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/contents/{+path}","compare_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/merges","archive_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/downloads","issues_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/issues{/number}","pulls_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/labels{/name}","releases_url":"https://api.github.com/repos/javaee-samples/javaee7-samples/releases{/id}","created_at":"2013-08-27T18:47:51Z","updated_at":"2015-05-25T22:33:40Z","pushed_at":"2015-05-26T14:47:40Z","git_url":"git://github.com/javaee-samples/javaee7-samples.git","ssh_url":"git@github.com:javaee-samples/javaee7-samples.git","clone_url":"https://github.com/javaee-samples/javaee7-samples.git","svn_url":"https://github.com/javaee-samples/javaee7-samples","homepage":"https://javaee-support.ci.cloudbees.com/","size":6350,"stargazers_count":949,"watchers_count":949,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":694,"mirror_url":null,"open_issues_count":88,"forks":694,"open_issues":88,"watchers":949,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/javaee-samples/javaee7-samples/pulls/305"},"html":{"href":"https://github.com/javaee-samples/javaee7-samples/pull/305"},"issue":{"href":"https://api.github.com/repos/javaee-samples/javaee7-samples/issues/305"},"comments":{"href":"https://api.github.com/repos/javaee-samples/javaee7-samples/issues/305/comments"},"review_comments":{"href":"https://api.github.com/repos/javaee-samples/javaee7-samples/pulls/305/comments"},"review_comment":{"href":"https://api.github.com/repos/javaee-samples/javaee7-samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/javaee-samples/javaee7-samples/pulls/305/commits"},"statuses":{"href":"https://api.github.com/repos/javaee-samples/javaee7-samples/statuses/70bf0f845d6dfca70080b600d4903caf7aecaf34"}}}}