{"action":"created","comment":{"url":"https://api.github.com/repos/grpc/grpc-java/pulls/comments/32280394","id":32280394,"diff_hunk":"@@ -0,0 +1,58 @@\n+package io.grpc.android.integrationtest;\n+\n+import android.os.Bundle;\n+import android.test.ActivityInstrumentationTestCase2;\n+import android.test.InstrumentationTestRunner;\n+import junit.framework.Assert;\n+\n+import java.util.concurrent.CountDownLatch;\n+import java.util.concurrent.TimeUnit;\n+\n+/**\n+ * The Activity test of our App, used to trigger the integration test from commandline.\n+ */\n+public class TesterActivityTest extends ActivityInstrumentationTestCase2<TesterActivity> {\n+\n+  private String host;\n+  private int port = 8030;\n+  private String result;\n+  private String serverHostOverride;\n+  private String testCase;\n+  private boolean useTls;\n+  private boolean useTestCa;\n+\n+  public TesterActivityTest() {\n+    super(TesterActivity.class);\n+  }\n+\n+  public void setUp() throws Exception {\n+    super.setUp();\n+    getActivity();\n+    Bundle args = ((InstrumentationTestRunner) getInstrumentation()).getArguments();\n+    host = args.getString(\"server_host\", \"\");\n+    port = Integer.parseInt(args.getString(\"server_port\", \"0\"));\n+    assertTrue(\"Please specify server_host and server_port.\", !host.isEmpty() && port != 0);\n+    serverHostOverride = args.getString(\"server_host_override\", null);\n+    testCase = args.getString(\"test_case\", \"empty_unary\");\n+    useTls = Boolean.parseBoolean(args.getString(\"use_tls\", \"true\"));\n+    useTestCa = Boolean.parseBoolean(args.getString(\"use_test_ca\", \"false\"));\n+  }\n+\n+  public void testGrpc() throws Exception {\n+    final CountDownLatch finished = new CountDownLatch(1);\n+\n+    new GrpcTestTask(testCase, host, port, serverHostOverride, useTls, useTestCa,","path":"android-interop-testing/app/src/androidTest/java/io/grpc/android/integrationtest/TesterActivityTest.java","position":44,"original_position":44,"commit_id":"c906cb8d2e09550e205e7a8c5de3e6c713ad1de3","original_commit_id":"c906cb8d2e09550e205e7a8c5de3e6c713ad1de3","user":{"login":"ejona86","id":2811396,"avatar_url":"https://avatars.githubusercontent.com/u/2811396?v=3","gravatar_id":"","url":"https://api.github.com/users/ejona86","html_url":"https://github.com/ejona86","followers_url":"https://api.github.com/users/ejona86/followers","following_url":"https://api.github.com/users/ejona86/following{/other_user}","gists_url":"https://api.github.com/users/ejona86/gists{/gist_id}","starred_url":"https://api.github.com/users/ejona86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejona86/subscriptions","organizations_url":"https://api.github.com/users/ejona86/orgs","repos_url":"https://api.github.com/users/ejona86/repos","events_url":"https://api.github.com/users/ejona86/events{/privacy}","received_events_url":"https://api.github.com/users/ejona86/received_events","type":"User","site_admin":false},"body":"It seems doing a instrumentation test doesn't gain us much, because we aren't really testing the activity and its interactions. Can we do a test that really doesn't use the UI much/at all? Maybe a ActivityUnitTestCase?","created_at":"2015-06-11T23:48:34Z","updated_at":"2015-06-11T23:48:34Z","html_url":"https://github.com/grpc/grpc-java/pull/530#discussion_r32280394","pull_request_url":"https://api.github.com/repos/grpc/grpc-java/pulls/530","_links":{"self":{"href":"https://api.github.com/repos/grpc/grpc-java/pulls/comments/32280394"},"html":{"href":"https://github.com/grpc/grpc-java/pull/530#discussion_r32280394"},"pull_request":{"href":"https://api.github.com/repos/grpc/grpc-java/pulls/530"}}},"pull_request":{"url":"https://api.github.com/repos/grpc/grpc-java/pulls/530","id":37419483,"html_url":"https://github.com/grpc/grpc-java/pull/530","diff_url":"https://github.com/grpc/grpc-java/pull/530.diff","patch_url":"https://github.com/grpc/grpc-java/pull/530.patch","issue_url":"https://api.github.com/repos/grpc/grpc-java/issues/530","number":530,"state":"open","locked":false,"title":"Add the Android interop test App.","user":{"login":"madongfly","id":1962333,"avatar_url":"https://avatars.githubusercontent.com/u/1962333?v=3","gravatar_id":"","url":"https://api.github.com/users/madongfly","html_url":"https://github.com/madongfly","followers_url":"https://api.github.com/users/madongfly/followers","following_url":"https://api.github.com/users/madongfly/following{/other_user}","gists_url":"https://api.github.com/users/madongfly/gists{/gist_id}","starred_url":"https://api.github.com/users/madongfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madongfly/subscriptions","organizations_url":"https://api.github.com/users/madongfly/orgs","repos_url":"https://api.github.com/users/madongfly/repos","events_url":"https://api.github.com/users/madongfly/events{/privacy}","received_events_url":"https://api.github.com/users/madongfly/received_events","type":"User","site_admin":false},"body":"So far, it is built separately from the other gRpc components.\r\n\r\n@ejona86, please take a look, thanks!","created_at":"2015-06-11T00:43:21Z","updated_at":"2015-06-11T23:48:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba02c053c1a88f6ccab2a63f31eef9405dc4dc3d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/grpc/grpc-java/pulls/530/commits","review_comments_url":"https://api.github.com/repos/grpc/grpc-java/pulls/530/comments","review_comment_url":"https://api.github.com/repos/grpc/grpc-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grpc/grpc-java/issues/530/comments","statuses_url":"https://api.github.com/repos/grpc/grpc-java/statuses/c906cb8d2e09550e205e7a8c5de3e6c713ad1de3","head":{"label":"madongfly:android","ref":"android","sha":"c906cb8d2e09550e205e7a8c5de3e6c713ad1de3","user":{"login":"madongfly","id":1962333,"avatar_url":"https://avatars.githubusercontent.com/u/1962333?v=3","gravatar_id":"","url":"https://api.github.com/users/madongfly","html_url":"https://github.com/madongfly","followers_url":"https://api.github.com/users/madongfly/followers","following_url":"https://api.github.com/users/madongfly/following{/other_user}","gists_url":"https://api.github.com/users/madongfly/gists{/gist_id}","starred_url":"https://api.github.com/users/madongfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madongfly/subscriptions","organizations_url":"https://api.github.com/users/madongfly/orgs","repos_url":"https://api.github.com/users/madongfly/repos","events_url":"https://api.github.com/users/madongfly/events{/privacy}","received_events_url":"https://api.github.com/users/madongfly/received_events","type":"User","site_admin":false},"repo":{"id":32011307,"name":"grpc-java","full_name":"madongfly/grpc-java","owner":{"login":"madongfly","id":1962333,"avatar_url":"https://avatars.githubusercontent.com/u/1962333?v=3","gravatar_id":"","url":"https://api.github.com/users/madongfly","html_url":"https://github.com/madongfly","followers_url":"https://api.github.com/users/madongfly/followers","following_url":"https://api.github.com/users/madongfly/following{/other_user}","gists_url":"https://api.github.com/users/madongfly/gists{/gist_id}","starred_url":"https://api.github.com/users/madongfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madongfly/subscriptions","organizations_url":"https://api.github.com/users/madongfly/orgs","repos_url":"https://api.github.com/users/madongfly/repos","events_url":"https://api.github.com/users/madongfly/events{/privacy}","received_events_url":"https://api.github.com/users/madongfly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/madongfly/grpc-java","description":"The Java gRPC implementation. HTTP/2 based RPC","fork":true,"url":"https://api.github.com/repos/madongfly/grpc-java","forks_url":"https://api.github.com/repos/madongfly/grpc-java/forks","keys_url":"https://api.github.com/repos/madongfly/grpc-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/madongfly/grpc-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/madongfly/grpc-java/teams","hooks_url":"https://api.github.com/repos/madongfly/grpc-java/hooks","issue_events_url":"https://api.github.com/repos/madongfly/grpc-java/issues/events{/number}","events_url":"https://api.github.com/repos/madongfly/grpc-java/events","assignees_url":"https://api.github.com/repos/madongfly/grpc-java/assignees{/user}","branches_url":"https://api.github.com/repos/madongfly/grpc-java/branches{/branch}","tags_url":"https://api.github.com/repos/madongfly/grpc-java/tags","blobs_url":"https://api.github.com/repos/madongfly/grpc-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/madongfly/grpc-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/madongfly/grpc-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/madongfly/grpc-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/madongfly/grpc-java/statuses/{sha}","languages_url":"https://api.github.com/repos/madongfly/grpc-java/languages","stargazers_url":"https://api.github.com/repos/madongfly/grpc-java/stargazers","contributors_url":"https://api.github.com/repos/madongfly/grpc-java/contributors","subscribers_url":"https://api.github.com/repos/madongfly/grpc-java/subscribers","subscription_url":"https://api.github.com/repos/madongfly/grpc-java/subscription","commits_url":"https://api.github.com/repos/madongfly/grpc-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/madongfly/grpc-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/madongfly/grpc-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/madongfly/grpc-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/madongfly/grpc-java/contents/{+path}","compare_url":"https://api.github.com/repos/madongfly/grpc-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/madongfly/grpc-java/merges","archive_url":"https://api.github.com/repos/madongfly/grpc-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/madongfly/grpc-java/downloads","issues_url":"https://api.github.com/repos/madongfly/grpc-java/issues{/number}","pulls_url":"https://api.github.com/repos/madongfly/grpc-java/pulls{/number}","milestones_url":"https://api.github.com/repos/madongfly/grpc-java/milestones{/number}","notifications_url":"https://api.github.com/repos/madongfly/grpc-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/madongfly/grpc-java/labels{/name}","releases_url":"https://api.github.com/repos/madongfly/grpc-java/releases{/id}","created_at":"2015-03-11T10:19:21Z","updated_at":"2015-04-29T23:27:25Z","pushed_at":"2015-06-11T21:45:45Z","git_url":"git://github.com/madongfly/grpc-java.git","ssh_url":"git@github.com:madongfly/grpc-java.git","clone_url":"https://github.com/madongfly/grpc-java.git","svn_url":"https://github.com/madongfly/grpc-java","homepage":"","size":2887,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"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":"grpc:master","ref":"master","sha":"483738e8bc57bb238f24f164978e332ac8640e30","user":{"login":"grpc","id":7802525,"avatar_url":"https://avatars.githubusercontent.com/u/7802525?v=3","gravatar_id":"","url":"https://api.github.com/users/grpc","html_url":"https://github.com/grpc","followers_url":"https://api.github.com/users/grpc/followers","following_url":"https://api.github.com/users/grpc/following{/other_user}","gists_url":"https://api.github.com/users/grpc/gists{/gist_id}","starred_url":"https://api.github.com/users/grpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grpc/subscriptions","organizations_url":"https://api.github.com/users/grpc/orgs","repos_url":"https://api.github.com/users/grpc/repos","events_url":"https://api.github.com/users/grpc/events{/privacy}","received_events_url":"https://api.github.com/users/grpc/received_events","type":"Organization","site_admin":false},"repo":{"id":27729926,"name":"grpc-java","full_name":"grpc/grpc-java","owner":{"login":"grpc","id":7802525,"avatar_url":"https://avatars.githubusercontent.com/u/7802525?v=3","gravatar_id":"","url":"https://api.github.com/users/grpc","html_url":"https://github.com/grpc","followers_url":"https://api.github.com/users/grpc/followers","following_url":"https://api.github.com/users/grpc/following{/other_user}","gists_url":"https://api.github.com/users/grpc/gists{/gist_id}","starred_url":"https://api.github.com/users/grpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grpc/subscriptions","organizations_url":"https://api.github.com/users/grpc/orgs","repos_url":"https://api.github.com/users/grpc/repos","events_url":"https://api.github.com/users/grpc/events{/privacy}","received_events_url":"https://api.github.com/users/grpc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/grpc/grpc-java","description":"The Java gRPC implementation. HTTP/2 based RPC","fork":false,"url":"https://api.github.com/repos/grpc/grpc-java","forks_url":"https://api.github.com/repos/grpc/grpc-java/forks","keys_url":"https://api.github.com/repos/grpc/grpc-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grpc/grpc-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grpc/grpc-java/teams","hooks_url":"https://api.github.com/repos/grpc/grpc-java/hooks","issue_events_url":"https://api.github.com/repos/grpc/grpc-java/issues/events{/number}","events_url":"https://api.github.com/repos/grpc/grpc-java/events","assignees_url":"https://api.github.com/repos/grpc/grpc-java/assignees{/user}","branches_url":"https://api.github.com/repos/grpc/grpc-java/branches{/branch}","tags_url":"https://api.github.com/repos/grpc/grpc-java/tags","blobs_url":"https://api.github.com/repos/grpc/grpc-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grpc/grpc-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grpc/grpc-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/grpc/grpc-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grpc/grpc-java/statuses/{sha}","languages_url":"https://api.github.com/repos/grpc/grpc-java/languages","stargazers_url":"https://api.github.com/repos/grpc/grpc-java/stargazers","contributors_url":"https://api.github.com/repos/grpc/grpc-java/contributors","subscribers_url":"https://api.github.com/repos/grpc/grpc-java/subscribers","subscription_url":"https://api.github.com/repos/grpc/grpc-java/subscription","commits_url":"https://api.github.com/repos/grpc/grpc-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/grpc/grpc-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/grpc/grpc-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/grpc/grpc-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/grpc/grpc-java/contents/{+path}","compare_url":"https://api.github.com/repos/grpc/grpc-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grpc/grpc-java/merges","archive_url":"https://api.github.com/repos/grpc/grpc-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grpc/grpc-java/downloads","issues_url":"https://api.github.com/repos/grpc/grpc-java/issues{/number}","pulls_url":"https://api.github.com/repos/grpc/grpc-java/pulls{/number}","milestones_url":"https://api.github.com/repos/grpc/grpc-java/milestones{/number}","notifications_url":"https://api.github.com/repos/grpc/grpc-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grpc/grpc-java/labels{/name}","releases_url":"https://api.github.com/repos/grpc/grpc-java/releases{/id}","created_at":"2014-12-08T19:00:00Z","updated_at":"2015-06-11T16:23:38Z","pushed_at":"2015-06-11T22:27:50Z","git_url":"git://github.com/grpc/grpc-java.git","ssh_url":"git@github.com:grpc/grpc-java.git","clone_url":"https://github.com/grpc/grpc-java.git","svn_url":"https://github.com/grpc/grpc-java","homepage":"","size":18870,"stargazers_count":734,"watchers_count":734,"language":"Java","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":158,"mirror_url":null,"open_issues_count":78,"forks":158,"open_issues":78,"watchers":734,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grpc/grpc-java/pulls/530"},"html":{"href":"https://github.com/grpc/grpc-java/pull/530"},"issue":{"href":"https://api.github.com/repos/grpc/grpc-java/issues/530"},"comments":{"href":"https://api.github.com/repos/grpc/grpc-java/issues/530/comments"},"review_comments":{"href":"https://api.github.com/repos/grpc/grpc-java/pulls/530/comments"},"review_comment":{"href":"https://api.github.com/repos/grpc/grpc-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grpc/grpc-java/pulls/530/commits"},"statuses":{"href":"https://api.github.com/repos/grpc/grpc-java/statuses/c906cb8d2e09550e205e7a8c5de3e6c713ad1de3"}}}}