{"action":"created","comment":{"url":"https://api.github.com/repos/aha-oretama/test/pulls/comments/217972551","pull_request_review_id":155807516,"id":217972551,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzk3MjU1MQ==","diff_hunk":"@@ -0,0 +1,514 @@\n+/*\n+ * Copyright 2002-2016 the original author or authors.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.springframework.scheduling.quartz;\n+\n+import java.util.HashMap;\n+import java.util.Map;\n+import javax.sql.DataSource;\n+\n+import org.junit.Test;\n+import org.quartz.Job;\n+import org.quartz.JobExecutionContext;\n+import org.quartz.JobExecutionException;\n+import org.quartz.Scheduler;\n+import org.quartz.SchedulerContext;\n+import org.quartz.SchedulerFactory;\n+import org.quartz.impl.JobDetailImpl;\n+import org.quartz.impl.SchedulerRepository;\n+\n+import org.springframework.beans.factory.config.BeanDefinition;\n+import org.springframework.beans.factory.support.BeanDefinitionBuilder;\n+import org.springframework.beans.factory.support.RootBeanDefinition;\n+import org.springframework.context.support.ClassPathXmlApplicationContext;\n+import org.springframework.context.support.StaticApplicationContext;\n+import org.springframework.core.task.TaskExecutor;\n+import org.springframework.jdbc.core.JdbcTemplate;\n+import org.springframework.tests.Assume;\n+import org.springframework.tests.TestGroup;\n+import org.springframework.tests.sample.beans.TestBean;\n+\n+import static org.junit.Assert.*;\n+import static org.mockito.BDDMockito.*;\n+\n+/**\n+ * @author Juergen Hoeller\n+ * @author Alef Arendsen\n+ * @author Rob Harrop\n+ * @author Dave Syer\n+ * @author Mark Fisher\n+ * @author Sam Brannen\n+ * @author ScienJus\n+ * @since 20.02.2004\n+ */\n+public class QuartzSupportTests {\n+\n+\t@Test\n+\tpublic void schedulerFactoryBeanWithApplicationContext() throws Exception {\n+\t\tTestBean tb = new TestBean(\"tb\", 99);\n+\t\tStaticApplicationContext ac = new StaticApplicationContext();\n+\n+\t\tfinal Scheduler scheduler = mock(Scheduler.class);\n+\t\tSchedulerContext schedulerContext = new SchedulerContext();\n+\t\tgiven(scheduler.getContext()).willReturn(schedulerContext);\n+\n+\t\tSchedulerFactoryBean schedulerFactoryBean = new SchedulerFactoryBean() {\n+\t\t\t@Override\n+\t\t\tprotected Scheduler createScheduler(SchedulerFactory schedulerFactory, String schedulerName) {\n+\t\t\t\treturn scheduler;\n+\t\t\t}\n+\t\t};\n+\t\tschedulerFactoryBean.setJobFactory(null);\n+\t\tMap<String, Object> schedulerContextMap = new HashMap<>();\n+\t\tschedulerContextMap.put(\"testBean\", tb);\n+\t\tschedulerFactoryBean.setSchedulerContextAsMap(schedulerContextMap);\n+\t\tschedulerFactoryBean.setApplicationContext(ac);\n+\t\tschedulerFactoryBean.setApplicationContextSchedulerContextKey(\"appCtx\");\n+\t\ttry {\n+\t\t\tschedulerFactoryBean.afterPropertiesSet();\n+\t\t\tschedulerFactoryBean.start();\n+\t\t\tScheduler returnedScheduler = schedulerFactoryBean.getObject();\n+\t\t\tassertEquals(tb, returnedScheduler.getContext().get(\"testBean\"));\n+\t\t\tassertEquals(ac, returnedScheduler.getContext().get(\"appCtx\"));","path":"QuartzSupportTests.java","position":85,"original_position":85,"commit_id":"843a0017441769cc8d65b9ea528a4c9319471458","original_commit_id":"843a0017441769cc8d65b9ea528a4c9319471458","user":{"login":"typofixer[bot]","id":37741954,"node_id":"MDM6Qm90Mzc3NDE5NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7259161?v=4","gravatar_id":"","url":"https://api.github.com/users/typofixer%5Bbot%5D","html_url":"https://github.com/apps/typofixer","followers_url":"https://api.github.com/users/typofixer%5Bbot%5D/followers","following_url":"https://api.github.com/users/typofixer%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/typofixer%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/typofixer%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typofixer%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/typofixer%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/typofixer%5Bbot%5D/repos","events_url":"https://api.github.com/users/typofixer%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/typofixer%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"Typo? \"Ctx\" at 85 line.\n- [ ] Cox\n- [ ] CT\n- [ ] Ct\n- [ ] TX\n- [ ] Ctn\n- [ ] Ctr\n- [ ] Ct x\n- [ ] Not typo, register in dictionary and never point out.","created_at":"2018-09-17T07:43:51Z","updated_at":"2018-09-17T07:43:51Z","html_url":"https://github.com/aha-oretama/test/pull/3#discussion_r217972551","pull_request_url":"https://api.github.com/repos/aha-oretama/test/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/aha-oretama/test/pulls/comments/217972551"},"html":{"href":"https://github.com/aha-oretama/test/pull/3#discussion_r217972551"},"pull_request":{"href":"https://api.github.com/repos/aha-oretama/test/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/aha-oretama/test/pulls/3","id":215892174,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1ODkyMTc0","html_url":"https://github.com/aha-oretama/test/pull/3","diff_url":"https://github.com/aha-oretama/test/pull/3.diff","patch_url":"https://github.com/aha-oretama/test/pull/3.patch","issue_url":"https://api.github.com/repos/aha-oretama/test/issues/3","number":3,"state":"open","locked":false,"title":"Fix test","user":{"login":"aha-oretama","id":7259161,"node_id":"MDQ6VXNlcjcyNTkxNjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7259161?v=4","gravatar_id":"","url":"https://api.github.com/users/aha-oretama","html_url":"https://github.com/aha-oretama","followers_url":"https://api.github.com/users/aha-oretama/followers","following_url":"https://api.github.com/users/aha-oretama/following{/other_user}","gists_url":"https://api.github.com/users/aha-oretama/gists{/gist_id}","starred_url":"https://api.github.com/users/aha-oretama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aha-oretama/subscriptions","organizations_url":"https://api.github.com/users/aha-oretama/orgs","repos_url":"https://api.github.com/users/aha-oretama/repos","events_url":"https://api.github.com/users/aha-oretama/events{/privacy}","received_events_url":"https://api.github.com/users/aha-oretama/received_events","type":"User","site_admin":false},"body":"Test","created_at":"2018-09-17T07:26:00Z","updated_at":"2018-09-17T07:43:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96068dba988239b6f431166c3714d9d14fcf1438","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aha-oretama/test/pulls/3/commits","review_comments_url":"https://api.github.com/repos/aha-oretama/test/pulls/3/comments","review_comment_url":"https://api.github.com/repos/aha-oretama/test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aha-oretama/test/issues/3/comments","statuses_url":"https://api.github.com/repos/aha-oretama/test/statuses/843a0017441769cc8d65b9ea528a4c9319471458","head":{"label":"aha-oretama:fix-test","ref":"fix-test","sha":"843a0017441769cc8d65b9ea528a4c9319471458","user":{"login":"aha-oretama","id":7259161,"node_id":"MDQ6VXNlcjcyNTkxNjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7259161?v=4","gravatar_id":"","url":"https://api.github.com/users/aha-oretama","html_url":"https://github.com/aha-oretama","followers_url":"https://api.github.com/users/aha-oretama/followers","following_url":"https://api.github.com/users/aha-oretama/following{/other_user}","gists_url":"https://api.github.com/users/aha-oretama/gists{/gist_id}","starred_url":"https://api.github.com/users/aha-oretama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aha-oretama/subscriptions","organizations_url":"https://api.github.com/users/aha-oretama/orgs","repos_url":"https://api.github.com/users/aha-oretama/repos","events_url":"https://api.github.com/users/aha-oretama/events{/privacy}","received_events_url":"https://api.github.com/users/aha-oretama/received_events","type":"User","site_admin":false},"repo":{"id":97314451,"node_id":"MDEwOlJlcG9zaXRvcnk5NzMxNDQ1MQ==","name":"test","full_name":"aha-oretama/test","private":false,"owner":{"login":"aha-oretama","id":7259161,"node_id":"MDQ6VXNlcjcyNTkxNjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7259161?v=4","gravatar_id":"","url":"https://api.github.com/users/aha-oretama","html_url":"https://github.com/aha-oretama","followers_url":"https://api.github.com/users/aha-oretama/followers","following_url":"https://api.github.com/users/aha-oretama/following{/other_user}","gists_url":"https://api.github.com/users/aha-oretama/gists{/gist_id}","starred_url":"https://api.github.com/users/aha-oretama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aha-oretama/subscriptions","organizations_url":"https://api.github.com/users/aha-oretama/orgs","repos_url":"https://api.github.com/users/aha-oretama/repos","events_url":"https://api.github.com/users/aha-oretama/events{/privacy}","received_events_url":"https://api.github.com/users/aha-oretama/received_events","type":"User","site_admin":false},"html_url":"https://github.com/aha-oretama/test","description":null,"fork":false,"url":"https://api.github.com/repos/aha-oretama/test","forks_url":"https://api.github.com/repos/aha-oretama/test/forks","keys_url":"https://api.github.com/repos/aha-oretama/test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aha-oretama/test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aha-oretama/test/teams","hooks_url":"https://api.github.com/repos/aha-oretama/test/hooks","issue_events_url":"https://api.github.com/repos/aha-oretama/test/issues/events{/number}","events_url":"https://api.github.com/repos/aha-oretama/test/events","assignees_url":"https://api.github.com/repos/aha-oretama/test/assignees{/user}","branches_url":"https://api.github.com/repos/aha-oretama/test/branches{/branch}","tags_url":"https://api.github.com/repos/aha-oretama/test/tags","blobs_url":"https://api.github.com/repos/aha-oretama/test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aha-oretama/test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aha-oretama/test/git/refs{/sha}","trees_url":"https://api.github.com/repos/aha-oretama/test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aha-oretama/test/statuses/{sha}","languages_url":"https://api.github.com/repos/aha-oretama/test/languages","stargazers_url":"https://api.github.com/repos/aha-oretama/test/stargazers","contributors_url":"https://api.github.com/repos/aha-oretama/test/contributors","subscribers_url":"https://api.github.com/repos/aha-oretama/test/subscribers","subscription_url":"https://api.github.com/repos/aha-oretama/test/subscription","commits_url":"https://api.github.com/repos/aha-oretama/test/commits{/sha}","git_commits_url":"https://api.github.com/repos/aha-oretama/test/git/commits{/sha}","comments_url":"https://api.github.com/repos/aha-oretama/test/comments{/number}","issue_comment_url":"https://api.github.com/repos/aha-oretama/test/issues/comments{/number}","contents_url":"https://api.github.com/repos/aha-oretama/test/contents/{+path}","compare_url":"https://api.github.com/repos/aha-oretama/test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aha-oretama/test/merges","archive_url":"https://api.github.com/repos/aha-oretama/test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aha-oretama/test/downloads","issues_url":"https://api.github.com/repos/aha-oretama/test/issues{/number}","pulls_url":"https://api.github.com/repos/aha-oretama/test/pulls{/number}","milestones_url":"https://api.github.com/repos/aha-oretama/test/milestones{/number}","notifications_url":"https://api.github.com/repos/aha-oretama/test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aha-oretama/test/labels{/name}","releases_url":"https://api.github.com/repos/aha-oretama/test/releases{/id}","deployments_url":"https://api.github.com/repos/aha-oretama/test/deployments","created_at":"2017-07-15T12:27:04Z","updated_at":"2017-07-15T12:27:04Z","pushed_at":"2018-09-17T07:26:01Z","git_url":"git://github.com/aha-oretama/test.git","ssh_url":"git@github.com:aha-oretama/test.git","clone_url":"https://github.com/aha-oretama/test.git","svn_url":"https://github.com/aha-oretama/test","homepage":null,"size":19,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"aha-oretama:master","ref":"master","sha":"4787439ebaf005188b8cd8f8a98d3f0ac4549ae7","user":{"login":"aha-oretama","id":7259161,"node_id":"MDQ6VXNlcjcyNTkxNjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7259161?v=4","gravatar_id":"","url":"https://api.github.com/users/aha-oretama","html_url":"https://github.com/aha-oretama","followers_url":"https://api.github.com/users/aha-oretama/followers","following_url":"https://api.github.com/users/aha-oretama/following{/other_user}","gists_url":"https://api.github.com/users/aha-oretama/gists{/gist_id}","starred_url":"https://api.github.com/users/aha-oretama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aha-oretama/subscriptions","organizations_url":"https://api.github.com/users/aha-oretama/orgs","repos_url":"https://api.github.com/users/aha-oretama/repos","events_url":"https://api.github.com/users/aha-oretama/events{/privacy}","received_events_url":"https://api.github.com/users/aha-oretama/received_events","type":"User","site_admin":false},"repo":{"id":97314451,"node_id":"MDEwOlJlcG9zaXRvcnk5NzMxNDQ1MQ==","name":"test","full_name":"aha-oretama/test","private":false,"owner":{"login":"aha-oretama","id":7259161,"node_id":"MDQ6VXNlcjcyNTkxNjE=","avatar_url":"https://avatars0.githubusercontent.com/u/7259161?v=4","gravatar_id":"","url":"https://api.github.com/users/aha-oretama","html_url":"https://github.com/aha-oretama","followers_url":"https://api.github.com/users/aha-oretama/followers","following_url":"https://api.github.com/users/aha-oretama/following{/other_user}","gists_url":"https://api.github.com/users/aha-oretama/gists{/gist_id}","starred_url":"https://api.github.com/users/aha-oretama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aha-oretama/subscriptions","organizations_url":"https://api.github.com/users/aha-oretama/orgs","repos_url":"https://api.github.com/users/aha-oretama/repos","events_url":"https://api.github.com/users/aha-oretama/events{/privacy}","received_events_url":"https://api.github.com/users/aha-oretama/received_events","type":"User","site_admin":false},"html_url":"https://github.com/aha-oretama/test","description":null,"fork":false,"url":"https://api.github.com/repos/aha-oretama/test","forks_url":"https://api.github.com/repos/aha-oretama/test/forks","keys_url":"https://api.github.com/repos/aha-oretama/test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aha-oretama/test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aha-oretama/test/teams","hooks_url":"https://api.github.com/repos/aha-oretama/test/hooks","issue_events_url":"https://api.github.com/repos/aha-oretama/test/issues/events{/number}","events_url":"https://api.github.com/repos/aha-oretama/test/events","assignees_url":"https://api.github.com/repos/aha-oretama/test/assignees{/user}","branches_url":"https://api.github.com/repos/aha-oretama/test/branches{/branch}","tags_url":"https://api.github.com/repos/aha-oretama/test/tags","blobs_url":"https://api.github.com/repos/aha-oretama/test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aha-oretama/test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aha-oretama/test/git/refs{/sha}","trees_url":"https://api.github.com/repos/aha-oretama/test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aha-oretama/test/statuses/{sha}","languages_url":"https://api.github.com/repos/aha-oretama/test/languages","stargazers_url":"https://api.github.com/repos/aha-oretama/test/stargazers","contributors_url":"https://api.github.com/repos/aha-oretama/test/contributors","subscribers_url":"https://api.github.com/repos/aha-oretama/test/subscribers","subscription_url":"https://api.github.com/repos/aha-oretama/test/subscription","commits_url":"https://api.github.com/repos/aha-oretama/test/commits{/sha}","git_commits_url":"https://api.github.com/repos/aha-oretama/test/git/commits{/sha}","comments_url":"https://api.github.com/repos/aha-oretama/test/comments{/number}","issue_comment_url":"https://api.github.com/repos/aha-oretama/test/issues/comments{/number}","contents_url":"https://api.github.com/repos/aha-oretama/test/contents/{+path}","compare_url":"https://api.github.com/repos/aha-oretama/test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aha-oretama/test/merges","archive_url":"https://api.github.com/repos/aha-oretama/test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aha-oretama/test/downloads","issues_url":"https://api.github.com/repos/aha-oretama/test/issues{/number}","pulls_url":"https://api.github.com/repos/aha-oretama/test/pulls{/number}","milestones_url":"https://api.github.com/repos/aha-oretama/test/milestones{/number}","notifications_url":"https://api.github.com/repos/aha-oretama/test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aha-oretama/test/labels{/name}","releases_url":"https://api.github.com/repos/aha-oretama/test/releases{/id}","deployments_url":"https://api.github.com/repos/aha-oretama/test/deployments","created_at":"2017-07-15T12:27:04Z","updated_at":"2017-07-15T12:27:04Z","pushed_at":"2018-09-17T07:26:01Z","git_url":"git://github.com/aha-oretama/test.git","ssh_url":"git@github.com:aha-oretama/test.git","clone_url":"https://github.com/aha-oretama/test.git","svn_url":"https://github.com/aha-oretama/test","homepage":null,"size":19,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aha-oretama/test/pulls/3"},"html":{"href":"https://github.com/aha-oretama/test/pull/3"},"issue":{"href":"https://api.github.com/repos/aha-oretama/test/issues/3"},"comments":{"href":"https://api.github.com/repos/aha-oretama/test/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/aha-oretama/test/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/aha-oretama/test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aha-oretama/test/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/aha-oretama/test/statuses/843a0017441769cc8d65b9ea528a4c9319471458"}},"author_association":"OWNER"}}
{"actor":{"display_login":"typofixer"}}