{"action":"created","comment":{"url":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/comments/72365242","id":72365242,"diff_hunk":"@@ -0,0 +1,57 @@\n+package edu.uci.ics.cloudberry.noah.kafka\n+\n+import java.util\n+\n+import edu.uci.ics.cloudberry.noah.GeneralProducerKafka\n+import edu.uci.ics.cloudberry.noah.feed.Config\n+import org.apache.kafka.clients.consumer.{ConsumerRecords, KafkaConsumer}\n+import org.apache.kafka.clients.producer.{KafkaProducer, ProducerRecord}\n+import org.mockito._\n+import org.specs2.mock.Mockito\n+import org.specs2.mutable.Specification\n+import play.api.libs.ws.ahc.AhcWSClient\n+\n+/**\n+  * Created by Monique on 7/22/2016.\n+  */\n+class TestKafka extends Specification with Mockito {\n+\n+  \"General Producer Kafka\" should {\n+    val mockProducer = mock[KafkaProducer[String, String]]\n+    val argument = ArgumentCaptor.forClass(classOf[ProducerRecord[String, String]])\n+    val producerKafka = new GeneralProducerKafka(any)\n+    producerKafka.store(\"TestKafka\", \"testing...\", mockProducer)","path":"noah/src/test/scala/edu/uci/ics/cloudberry/noah/kafka/TestKafka.scala","position":23,"original_position":23,"commit_id":"feda6c76a7c6c6c1b091ea4bd3324470aa9948d4","original_commit_id":"feda6c76a7c6c6c1b091ea4bd3324470aa9948d4","user":{"login":"JavierJia","id":910229,"avatar_url":"https://avatars.githubusercontent.com/u/910229?v=3","gravatar_id":"","url":"https://api.github.com/users/JavierJia","html_url":"https://github.com/JavierJia","followers_url":"https://api.github.com/users/JavierJia/followers","following_url":"https://api.github.com/users/JavierJia/following{/other_user}","gists_url":"https://api.github.com/users/JavierJia/gists{/gist_id}","starred_url":"https://api.github.com/users/JavierJia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JavierJia/subscriptions","organizations_url":"https://api.github.com/users/JavierJia/orgs","repos_url":"https://api.github.com/users/JavierJia/repos","events_url":"https://api.github.com/users/JavierJia/events{/privacy}","received_events_url":"https://api.github.com/users/JavierJia/received_events","type":"User","site_admin":false},"body":"this line is part of the test, it should be moved inside the `in` block.","created_at":"2016-07-27T00:59:15Z","updated_at":"2016-07-27T00:59:15Z","html_url":"https://github.com/ISG-ICS/cloudberry/pull/146#discussion_r72365242","pull_request_url":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/146","_links":{"self":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/comments/72365242"},"html":{"href":"https://github.com/ISG-ICS/cloudberry/pull/146#discussion_r72365242"},"pull_request":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/146"}}},"pull_request":{"url":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/146","id":78949779,"html_url":"https://github.com/ISG-ICS/cloudberry/pull/146","diff_url":"https://github.com/ISG-ICS/cloudberry/pull/146.diff","patch_url":"https://github.com/ISG-ICS/cloudberry/pull/146.patch","issue_url":"https://api.github.com/repos/ISG-ICS/cloudberry/issues/146","number":146,"state":"open","locked":false,"title":"Kafka Test Cases","user":{"login":"MoniMoledo","id":11588170,"avatar_url":"https://avatars.githubusercontent.com/u/11588170?v=3","gravatar_id":"","url":"https://api.github.com/users/MoniMoledo","html_url":"https://github.com/MoniMoledo","followers_url":"https://api.github.com/users/MoniMoledo/followers","following_url":"https://api.github.com/users/MoniMoledo/following{/other_user}","gists_url":"https://api.github.com/users/MoniMoledo/gists{/gist_id}","starred_url":"https://api.github.com/users/MoniMoledo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoniMoledo/subscriptions","organizations_url":"https://api.github.com/users/MoniMoledo/orgs","repos_url":"https://api.github.com/users/MoniMoledo/repos","events_url":"https://api.github.com/users/MoniMoledo/events{/privacy}","received_events_url":"https://api.github.com/users/MoniMoledo/received_events","type":"User","site_admin":false},"body":"Implement some Test Cases for Kafka Producer and Consumer\r\nReformat code to be more testable\r\n\r\n#131 #111 \r\n\r\n@JavierJia ","created_at":"2016-07-27T00:53:32Z","updated_at":"2016-07-27T00:59:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3486f50ab463f6648ac5f5efbb7e81f879722572","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/146/commits","review_comments_url":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/146/comments","review_comment_url":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ISG-ICS/cloudberry/issues/146/comments","statuses_url":"https://api.github.com/repos/ISG-ICS/cloudberry/statuses/feda6c76a7c6c6c1b091ea4bd3324470aa9948d4","head":{"label":"MoniMoledo:kafkaTestCase","ref":"kafkaTestCase","sha":"feda6c76a7c6c6c1b091ea4bd3324470aa9948d4","user":{"login":"MoniMoledo","id":11588170,"avatar_url":"https://avatars.githubusercontent.com/u/11588170?v=3","gravatar_id":"","url":"https://api.github.com/users/MoniMoledo","html_url":"https://github.com/MoniMoledo","followers_url":"https://api.github.com/users/MoniMoledo/followers","following_url":"https://api.github.com/users/MoniMoledo/following{/other_user}","gists_url":"https://api.github.com/users/MoniMoledo/gists{/gist_id}","starred_url":"https://api.github.com/users/MoniMoledo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoniMoledo/subscriptions","organizations_url":"https://api.github.com/users/MoniMoledo/orgs","repos_url":"https://api.github.com/users/MoniMoledo/repos","events_url":"https://api.github.com/users/MoniMoledo/events{/privacy}","received_events_url":"https://api.github.com/users/MoniMoledo/received_events","type":"User","site_admin":false},"repo":{"id":60635242,"name":"cloudberry","full_name":"MoniMoledo/cloudberry","owner":{"login":"MoniMoledo","id":11588170,"avatar_url":"https://avatars.githubusercontent.com/u/11588170?v=3","gravatar_id":"","url":"https://api.github.com/users/MoniMoledo","html_url":"https://github.com/MoniMoledo","followers_url":"https://api.github.com/users/MoniMoledo/followers","following_url":"https://api.github.com/users/MoniMoledo/following{/other_user}","gists_url":"https://api.github.com/users/MoniMoledo/gists{/gist_id}","starred_url":"https://api.github.com/users/MoniMoledo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoniMoledo/subscriptions","organizations_url":"https://api.github.com/users/MoniMoledo/orgs","repos_url":"https://api.github.com/users/MoniMoledo/repos","events_url":"https://api.github.com/users/MoniMoledo/events{/privacy}","received_events_url":"https://api.github.com/users/MoniMoledo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MoniMoledo/cloudberry","description":"Interactive Twitter map analytic application","fork":true,"url":"https://api.github.com/repos/MoniMoledo/cloudberry","forks_url":"https://api.github.com/repos/MoniMoledo/cloudberry/forks","keys_url":"https://api.github.com/repos/MoniMoledo/cloudberry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MoniMoledo/cloudberry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MoniMoledo/cloudberry/teams","hooks_url":"https://api.github.com/repos/MoniMoledo/cloudberry/hooks","issue_events_url":"https://api.github.com/repos/MoniMoledo/cloudberry/issues/events{/number}","events_url":"https://api.github.com/repos/MoniMoledo/cloudberry/events","assignees_url":"https://api.github.com/repos/MoniMoledo/cloudberry/assignees{/user}","branches_url":"https://api.github.com/repos/MoniMoledo/cloudberry/branches{/branch}","tags_url":"https://api.github.com/repos/MoniMoledo/cloudberry/tags","blobs_url":"https://api.github.com/repos/MoniMoledo/cloudberry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MoniMoledo/cloudberry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MoniMoledo/cloudberry/git/refs{/sha}","trees_url":"https://api.github.com/repos/MoniMoledo/cloudberry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MoniMoledo/cloudberry/statuses/{sha}","languages_url":"https://api.github.com/repos/MoniMoledo/cloudberry/languages","stargazers_url":"https://api.github.com/repos/MoniMoledo/cloudberry/stargazers","contributors_url":"https://api.github.com/repos/MoniMoledo/cloudberry/contributors","subscribers_url":"https://api.github.com/repos/MoniMoledo/cloudberry/subscribers","subscription_url":"https://api.github.com/repos/MoniMoledo/cloudberry/subscription","commits_url":"https://api.github.com/repos/MoniMoledo/cloudberry/commits{/sha}","git_commits_url":"https://api.github.com/repos/MoniMoledo/cloudberry/git/commits{/sha}","comments_url":"https://api.github.com/repos/MoniMoledo/cloudberry/comments{/number}","issue_comment_url":"https://api.github.com/repos/MoniMoledo/cloudberry/issues/comments{/number}","contents_url":"https://api.github.com/repos/MoniMoledo/cloudberry/contents/{+path}","compare_url":"https://api.github.com/repos/MoniMoledo/cloudberry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MoniMoledo/cloudberry/merges","archive_url":"https://api.github.com/repos/MoniMoledo/cloudberry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MoniMoledo/cloudberry/downloads","issues_url":"https://api.github.com/repos/MoniMoledo/cloudberry/issues{/number}","pulls_url":"https://api.github.com/repos/MoniMoledo/cloudberry/pulls{/number}","milestones_url":"https://api.github.com/repos/MoniMoledo/cloudberry/milestones{/number}","notifications_url":"https://api.github.com/repos/MoniMoledo/cloudberry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MoniMoledo/cloudberry/labels{/name}","releases_url":"https://api.github.com/repos/MoniMoledo/cloudberry/releases{/id}","deployments_url":"https://api.github.com/repos/MoniMoledo/cloudberry/deployments","created_at":"2016-06-07T18:06:21Z","updated_at":"2016-06-07T18:06:25Z","pushed_at":"2016-07-27T00:51:49Z","git_url":"git://github.com/MoniMoledo/cloudberry.git","ssh_url":"git@github.com:MoniMoledo/cloudberry.git","clone_url":"https://github.com/MoniMoledo/cloudberry.git","svn_url":"https://github.com/MoniMoledo/cloudberry","homepage":"http://cloudberry.ics.uci.edu","size":88976,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"ISG-ICS:master","ref":"master","sha":"e1623f3236c27f9b3eeb2ba934b4b40ca88282b5","user":{"login":"ISG-ICS","id":17169982,"avatar_url":"https://avatars.githubusercontent.com/u/17169982?v=3","gravatar_id":"","url":"https://api.github.com/users/ISG-ICS","html_url":"https://github.com/ISG-ICS","followers_url":"https://api.github.com/users/ISG-ICS/followers","following_url":"https://api.github.com/users/ISG-ICS/following{/other_user}","gists_url":"https://api.github.com/users/ISG-ICS/gists{/gist_id}","starred_url":"https://api.github.com/users/ISG-ICS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ISG-ICS/subscriptions","organizations_url":"https://api.github.com/users/ISG-ICS/orgs","repos_url":"https://api.github.com/users/ISG-ICS/repos","events_url":"https://api.github.com/users/ISG-ICS/events{/privacy}","received_events_url":"https://api.github.com/users/ISG-ICS/received_events","type":"Organization","site_admin":false},"repo":{"id":46375119,"name":"cloudberry","full_name":"ISG-ICS/cloudberry","owner":{"login":"ISG-ICS","id":17169982,"avatar_url":"https://avatars.githubusercontent.com/u/17169982?v=3","gravatar_id":"","url":"https://api.github.com/users/ISG-ICS","html_url":"https://github.com/ISG-ICS","followers_url":"https://api.github.com/users/ISG-ICS/followers","following_url":"https://api.github.com/users/ISG-ICS/following{/other_user}","gists_url":"https://api.github.com/users/ISG-ICS/gists{/gist_id}","starred_url":"https://api.github.com/users/ISG-ICS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ISG-ICS/subscriptions","organizations_url":"https://api.github.com/users/ISG-ICS/orgs","repos_url":"https://api.github.com/users/ISG-ICS/repos","events_url":"https://api.github.com/users/ISG-ICS/events{/privacy}","received_events_url":"https://api.github.com/users/ISG-ICS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ISG-ICS/cloudberry","description":"Interactive Twitter map analytic application","fork":false,"url":"https://api.github.com/repos/ISG-ICS/cloudberry","forks_url":"https://api.github.com/repos/ISG-ICS/cloudberry/forks","keys_url":"https://api.github.com/repos/ISG-ICS/cloudberry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ISG-ICS/cloudberry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ISG-ICS/cloudberry/teams","hooks_url":"https://api.github.com/repos/ISG-ICS/cloudberry/hooks","issue_events_url":"https://api.github.com/repos/ISG-ICS/cloudberry/issues/events{/number}","events_url":"https://api.github.com/repos/ISG-ICS/cloudberry/events","assignees_url":"https://api.github.com/repos/ISG-ICS/cloudberry/assignees{/user}","branches_url":"https://api.github.com/repos/ISG-ICS/cloudberry/branches{/branch}","tags_url":"https://api.github.com/repos/ISG-ICS/cloudberry/tags","blobs_url":"https://api.github.com/repos/ISG-ICS/cloudberry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ISG-ICS/cloudberry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ISG-ICS/cloudberry/git/refs{/sha}","trees_url":"https://api.github.com/repos/ISG-ICS/cloudberry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ISG-ICS/cloudberry/statuses/{sha}","languages_url":"https://api.github.com/repos/ISG-ICS/cloudberry/languages","stargazers_url":"https://api.github.com/repos/ISG-ICS/cloudberry/stargazers","contributors_url":"https://api.github.com/repos/ISG-ICS/cloudberry/contributors","subscribers_url":"https://api.github.com/repos/ISG-ICS/cloudberry/subscribers","subscription_url":"https://api.github.com/repos/ISG-ICS/cloudberry/subscription","commits_url":"https://api.github.com/repos/ISG-ICS/cloudberry/commits{/sha}","git_commits_url":"https://api.github.com/repos/ISG-ICS/cloudberry/git/commits{/sha}","comments_url":"https://api.github.com/repos/ISG-ICS/cloudberry/comments{/number}","issue_comment_url":"https://api.github.com/repos/ISG-ICS/cloudberry/issues/comments{/number}","contents_url":"https://api.github.com/repos/ISG-ICS/cloudberry/contents/{+path}","compare_url":"https://api.github.com/repos/ISG-ICS/cloudberry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ISG-ICS/cloudberry/merges","archive_url":"https://api.github.com/repos/ISG-ICS/cloudberry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ISG-ICS/cloudberry/downloads","issues_url":"https://api.github.com/repos/ISG-ICS/cloudberry/issues{/number}","pulls_url":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls{/number}","milestones_url":"https://api.github.com/repos/ISG-ICS/cloudberry/milestones{/number}","notifications_url":"https://api.github.com/repos/ISG-ICS/cloudberry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ISG-ICS/cloudberry/labels{/name}","releases_url":"https://api.github.com/repos/ISG-ICS/cloudberry/releases{/id}","deployments_url":"https://api.github.com/repos/ISG-ICS/cloudberry/deployments","created_at":"2015-11-17T20:59:29Z","updated_at":"2016-07-17T13:33:46Z","pushed_at":"2016-07-27T00:53:32Z","git_url":"git://github.com/ISG-ICS/cloudberry.git","ssh_url":"git@github.com:ISG-ICS/cloudberry.git","clone_url":"https://github.com/ISG-ICS/cloudberry.git","svn_url":"https://github.com/ISG-ICS/cloudberry","homepage":"http://cloudberry.ics.uci.edu","size":98085,"stargazers_count":6,"watchers_count":6,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":32,"forks":14,"open_issues":32,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/146"},"html":{"href":"https://github.com/ISG-ICS/cloudberry/pull/146"},"issue":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/issues/146"},"comments":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/issues/146/comments"},"review_comments":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/146/comments"},"review_comment":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/pulls/146/commits"},"statuses":{"href":"https://api.github.com/repos/ISG-ICS/cloudberry/statuses/feda6c76a7c6c6c1b091ea4bd3324470aa9948d4"}}}}
{"actor":{"display_login":"JavierJia"}}