{"action":"closed","number":57,"pull_request":{"url":"https://api.github.com/repos/confluentinc/kafka/pulls/57","id":45218052,"html_url":"https://github.com/confluentinc/kafka/pull/57","diff_url":"https://github.com/confluentinc/kafka/pull/57.diff","patch_url":"https://github.com/confluentinc/kafka/pull/57.patch","issue_url":"https://api.github.com/repos/confluentinc/kafka/issues/57","number":57,"state":"closed","locked":false,"title":"Added a new ProcessorTopologyTestDriver class that makes it easier to unit test a ProcessorTopology","user":{"login":"rhauch","id":84732,"avatar_url":"https://avatars.githubusercontent.com/u/84732?v=3","gravatar_id":"","url":"https://api.github.com/users/rhauch","html_url":"https://github.com/rhauch","followers_url":"https://api.github.com/users/rhauch/followers","following_url":"https://api.github.com/users/rhauch/following{/other_user}","gists_url":"https://api.github.com/users/rhauch/gists{/gist_id}","starred_url":"https://api.github.com/users/rhauch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhauch/subscriptions","organizations_url":"https://api.github.com/users/rhauch/orgs","repos_url":"https://api.github.com/users/rhauch/repos","events_url":"https://api.github.com/users/rhauch/events{/privacy}","received_events_url":"https://api.github.com/users/rhauch/received_events","type":"User","site_admin":false},"body":"The new test driver class uses a supplied `TopologyBuilder` and a `StreamingConfig` to set up a topology using the existing `StreamTask`, which is the same component used in the Kafka Streams framework for each thread. However, rather than rely upon a real Kafka broker, the test driver simulates a broker with mock consumers and producers. This required a few changes to `ProcessorContextImpl`, `StreamTask`, and `StreamThread` so that the latter can pass in the actual consumer used to restore state; this allows the test driver to pass a mock consumer into `StreamTask`. Without this change, the test driver could not run topologies that used state stores.\r\n\r\n(Updated version of #37)","created_at":"2015-09-16T20:09:49Z","updated_at":"2015-09-23T21:39:07Z","closed_at":"2015-09-23T21:39:07Z","merged_at":"2015-09-23T21:39:07Z","merge_commit_sha":"35b854bc691598775b2a928995c4d61c86e6c536","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/confluentinc/kafka/pulls/57/commits","review_comments_url":"https://api.github.com/repos/confluentinc/kafka/pulls/57/comments","review_comment_url":"https://api.github.com/repos/confluentinc/kafka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/confluentinc/kafka/issues/57/comments","statuses_url":"https://api.github.com/repos/confluentinc/kafka/statuses/c2ddd9a24fed6dbd9239ae3a0dfa070bf135a17e","head":{"label":"rhauch:streaming-processortopology-test-driver-updated","ref":"streaming-processortopology-test-driver-updated","sha":"c2ddd9a24fed6dbd9239ae3a0dfa070bf135a17e","user":{"login":"rhauch","id":84732,"avatar_url":"https://avatars.githubusercontent.com/u/84732?v=3","gravatar_id":"","url":"https://api.github.com/users/rhauch","html_url":"https://github.com/rhauch","followers_url":"https://api.github.com/users/rhauch/followers","following_url":"https://api.github.com/users/rhauch/following{/other_user}","gists_url":"https://api.github.com/users/rhauch/gists{/gist_id}","starred_url":"https://api.github.com/users/rhauch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhauch/subscriptions","organizations_url":"https://api.github.com/users/rhauch/orgs","repos_url":"https://api.github.com/users/rhauch/repos","events_url":"https://api.github.com/users/rhauch/events{/privacy}","received_events_url":"https://api.github.com/users/rhauch/received_events","type":"User","site_admin":false},"repo":{"id":40898643,"name":"kafka","full_name":"rhauch/kafka","owner":{"login":"rhauch","id":84732,"avatar_url":"https://avatars.githubusercontent.com/u/84732?v=3","gravatar_id":"","url":"https://api.github.com/users/rhauch","html_url":"https://github.com/rhauch","followers_url":"https://api.github.com/users/rhauch/followers","following_url":"https://api.github.com/users/rhauch/following{/other_user}","gists_url":"https://api.github.com/users/rhauch/gists{/gist_id}","starred_url":"https://api.github.com/users/rhauch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhauch/subscriptions","organizations_url":"https://api.github.com/users/rhauch/orgs","repos_url":"https://api.github.com/users/rhauch/repos","events_url":"https://api.github.com/users/rhauch/events{/privacy}","received_events_url":"https://api.github.com/users/rhauch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rhauch/kafka","description":"Mirror of Apache Kafka","fork":true,"url":"https://api.github.com/repos/rhauch/kafka","forks_url":"https://api.github.com/repos/rhauch/kafka/forks","keys_url":"https://api.github.com/repos/rhauch/kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rhauch/kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rhauch/kafka/teams","hooks_url":"https://api.github.com/repos/rhauch/kafka/hooks","issue_events_url":"https://api.github.com/repos/rhauch/kafka/issues/events{/number}","events_url":"https://api.github.com/repos/rhauch/kafka/events","assignees_url":"https://api.github.com/repos/rhauch/kafka/assignees{/user}","branches_url":"https://api.github.com/repos/rhauch/kafka/branches{/branch}","tags_url":"https://api.github.com/repos/rhauch/kafka/tags","blobs_url":"https://api.github.com/repos/rhauch/kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rhauch/kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rhauch/kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/rhauch/kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rhauch/kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/rhauch/kafka/languages","stargazers_url":"https://api.github.com/repos/rhauch/kafka/stargazers","contributors_url":"https://api.github.com/repos/rhauch/kafka/contributors","subscribers_url":"https://api.github.com/repos/rhauch/kafka/subscribers","subscription_url":"https://api.github.com/repos/rhauch/kafka/subscription","commits_url":"https://api.github.com/repos/rhauch/kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/rhauch/kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/rhauch/kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/rhauch/kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/rhauch/kafka/contents/{+path}","compare_url":"https://api.github.com/repos/rhauch/kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rhauch/kafka/merges","archive_url":"https://api.github.com/repos/rhauch/kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rhauch/kafka/downloads","issues_url":"https://api.github.com/repos/rhauch/kafka/issues{/number}","pulls_url":"https://api.github.com/repos/rhauch/kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/rhauch/kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/rhauch/kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rhauch/kafka/labels{/name}","releases_url":"https://api.github.com/repos/rhauch/kafka/releases{/id}","created_at":"2015-08-17T13:51:02Z","updated_at":"2015-08-17T13:51:05Z","pushed_at":"2015-09-23T19:37:58Z","git_url":"git://github.com/rhauch/kafka.git","ssh_url":"git@github.com:rhauch/kafka.git","clone_url":"https://github.com/rhauch/kafka.git","svn_url":"https://github.com/rhauch/kafka","homepage":null,"size":23779,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"trunk"}},"base":{"label":"confluentinc:streaming","ref":"streaming","sha":"25a869b19896357de5c9398301fa9f33d2563662","user":{"login":"confluentinc","id":9439498,"avatar_url":"https://avatars.githubusercontent.com/u/9439498?v=3","gravatar_id":"","url":"https://api.github.com/users/confluentinc","html_url":"https://github.com/confluentinc","followers_url":"https://api.github.com/users/confluentinc/followers","following_url":"https://api.github.com/users/confluentinc/following{/other_user}","gists_url":"https://api.github.com/users/confluentinc/gists{/gist_id}","starred_url":"https://api.github.com/users/confluentinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confluentinc/subscriptions","organizations_url":"https://api.github.com/users/confluentinc/orgs","repos_url":"https://api.github.com/users/confluentinc/repos","events_url":"https://api.github.com/users/confluentinc/events{/privacy}","received_events_url":"https://api.github.com/users/confluentinc/received_events","type":"Organization","site_admin":false},"repo":{"id":37555321,"name":"kafka","full_name":"confluentinc/kafka","owner":{"login":"confluentinc","id":9439498,"avatar_url":"https://avatars.githubusercontent.com/u/9439498?v=3","gravatar_id":"","url":"https://api.github.com/users/confluentinc","html_url":"https://github.com/confluentinc","followers_url":"https://api.github.com/users/confluentinc/followers","following_url":"https://api.github.com/users/confluentinc/following{/other_user}","gists_url":"https://api.github.com/users/confluentinc/gists{/gist_id}","starred_url":"https://api.github.com/users/confluentinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confluentinc/subscriptions","organizations_url":"https://api.github.com/users/confluentinc/orgs","repos_url":"https://api.github.com/users/confluentinc/repos","events_url":"https://api.github.com/users/confluentinc/events{/privacy}","received_events_url":"https://api.github.com/users/confluentinc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/confluentinc/kafka","description":"Mirror of Apache Kafka","fork":true,"url":"https://api.github.com/repos/confluentinc/kafka","forks_url":"https://api.github.com/repos/confluentinc/kafka/forks","keys_url":"https://api.github.com/repos/confluentinc/kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/confluentinc/kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/confluentinc/kafka/teams","hooks_url":"https://api.github.com/repos/confluentinc/kafka/hooks","issue_events_url":"https://api.github.com/repos/confluentinc/kafka/issues/events{/number}","events_url":"https://api.github.com/repos/confluentinc/kafka/events","assignees_url":"https://api.github.com/repos/confluentinc/kafka/assignees{/user}","branches_url":"https://api.github.com/repos/confluentinc/kafka/branches{/branch}","tags_url":"https://api.github.com/repos/confluentinc/kafka/tags","blobs_url":"https://api.github.com/repos/confluentinc/kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/confluentinc/kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/confluentinc/kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/confluentinc/kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/confluentinc/kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/confluentinc/kafka/languages","stargazers_url":"https://api.github.com/repos/confluentinc/kafka/stargazers","contributors_url":"https://api.github.com/repos/confluentinc/kafka/contributors","subscribers_url":"https://api.github.com/repos/confluentinc/kafka/subscribers","subscription_url":"https://api.github.com/repos/confluentinc/kafka/subscription","commits_url":"https://api.github.com/repos/confluentinc/kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/confluentinc/kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/confluentinc/kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/confluentinc/kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/confluentinc/kafka/contents/{+path}","compare_url":"https://api.github.com/repos/confluentinc/kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/confluentinc/kafka/merges","archive_url":"https://api.github.com/repos/confluentinc/kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/confluentinc/kafka/downloads","issues_url":"https://api.github.com/repos/confluentinc/kafka/issues{/number}","pulls_url":"https://api.github.com/repos/confluentinc/kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/confluentinc/kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/confluentinc/kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/confluentinc/kafka/labels{/name}","releases_url":"https://api.github.com/repos/confluentinc/kafka/releases{/id}","created_at":"2015-06-16T20:48:28Z","updated_at":"2015-09-23T13:19:29Z","pushed_at":"2015-09-23T21:39:07Z","git_url":"git://github.com/confluentinc/kafka.git","ssh_url":"git@github.com:confluentinc/kafka.git","clone_url":"https://github.com/confluentinc/kafka.git","svn_url":"https://github.com/confluentinc/kafka","homepage":null,"size":24641,"stargazers_count":7,"watchers_count":7,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":7,"default_branch":"trunk"}},"_links":{"self":{"href":"https://api.github.com/repos/confluentinc/kafka/pulls/57"},"html":{"href":"https://github.com/confluentinc/kafka/pull/57"},"issue":{"href":"https://api.github.com/repos/confluentinc/kafka/issues/57"},"comments":{"href":"https://api.github.com/repos/confluentinc/kafka/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/confluentinc/kafka/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/confluentinc/kafka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/confluentinc/kafka/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/confluentinc/kafka/statuses/c2ddd9a24fed6dbd9239ae3a0dfa070bf135a17e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"guozhangwang","id":10729597,"avatar_url":"https://avatars.githubusercontent.com/u/10729597?v=3","gravatar_id":"","url":"https://api.github.com/users/guozhangwang","html_url":"https://github.com/guozhangwang","followers_url":"https://api.github.com/users/guozhangwang/followers","following_url":"https://api.github.com/users/guozhangwang/following{/other_user}","gists_url":"https://api.github.com/users/guozhangwang/gists{/gist_id}","starred_url":"https://api.github.com/users/guozhangwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guozhangwang/subscriptions","organizations_url":"https://api.github.com/users/guozhangwang/orgs","repos_url":"https://api.github.com/users/guozhangwang/repos","events_url":"https://api.github.com/users/guozhangwang/events{/privacy}","received_events_url":"https://api.github.com/users/guozhangwang/received_events","type":"User","site_admin":false},"comments":9,"review_comments":17,"commits":5,"additions":765,"deletions":94,"changed_files":19}}