{"action":"created","comment":{"url":"https://api.github.com/repos/grpc/grpc-java/pulls/comments/37550026","id":37550026,"diff_hunk":"@@ -0,0 +1,254 @@\n+package io.grpc.internal;\n+\n+import static org.junit.Assert.assertEquals;\n+import static org.junit.Assert.fail;\n+import static org.mockito.Matchers.isA;\n+import static org.mockito.Mockito.times;\n+import static org.mockito.Mockito.verify;\n+\n+import io.grpc.ChannelImpl;\n+import io.grpc.MessageEncoding;\n+import io.grpc.Metadata;\n+import io.grpc.Metadata.Headers;\n+import io.grpc.Status;\n+import io.grpc.Status.Code;\n+import io.grpc.internal.AbstractStream.Phase;\n+import io.grpc.internal.MessageFramerTest.ByteWritableBuffer;\n+\n+import org.junit.Before;\n+import org.junit.Rule;\n+import org.junit.Test;\n+import org.junit.rules.ExpectedException;\n+import org.mockito.ArgumentCaptor;\n+import org.mockito.Captor;\n+import org.mockito.Mock;\n+import org.mockito.MockitoAnnotations;\n+\n+import java.io.InputStream;\n+\n+/**\n+ * Test for {@link AbstractClientStream}.  This class tries to test functionality in\n+ * AbstractClientStream, but not in any super classes.\n+ */\n+public class AbstractClientStreamTest {\n+\n+  @Rule public final ExpectedException thrown = ExpectedException.none();\n+\n+  @Mock private ClientStreamListener mockListener;\n+  @Captor private ArgumentCaptor<Status> statusCaptor;\n+\n+  @Before\n+  public void setUp() {\n+    MockitoAnnotations.initMocks(this);\n+  }\n+\n+  private final WritableBufferAllocator allocator = new WritableBufferAllocator() {\n+    @Override\n+    public WritableBuffer allocate(int capacityHint) {\n+      return new ByteWritableBuffer(capacityHint);\n+    }\n+  };\n+\n+  @Test\n+  public void cancel_failsOnUnsupportedCode() {\n+    for (Code code : Code.values()) {\n+      ClientStreamListener listener = new BaseClientStreamListener();\n+      AbstractClientStream<Integer> stream =\n+          new BaseAbstractClientStream<Integer>(allocator, listener);\n+      if (code == Code.DEADLINE_EXCEEDED || code == Code.CANCELLED || code == Code.INTERNAL\n+          || code == Code.UNKNOWN) {\n+        stream.cancel(Status.fromCodeValue(code.value()));\n+      } else {\n+        try {\n+          stream.cancel(Status.fromCodeValue(code.value()));\n+          fail();\n+        } catch (IllegalArgumentException e) {\n+          // ignore\n+        }\n+      }\n+    }\n+  }\n+\n+  @Test\n+  public void cancel_failsOnNull() {\n+    ClientStreamListener listener = new BaseClientStreamListener();\n+    AbstractClientStream<Integer> stream =\n+        new BaseAbstractClientStream<Integer>(allocator, listener);\n+    thrown.expect(NullPointerException.class);\n+\n+    stream.cancel(null);\n+  }\n+\n+  @Test\n+  public void cancel_notifiesOnlyOnce() {\n+    AbstractClientStream<Integer> stream =\n+        new BaseAbstractClientStream<Integer>(allocator, mockListener) {\n+      @Override\n+      protected void sendCancel(Status errorStatus) {\n+        transportReportStatus(errorStatus, true/*stop delivery*/, new Metadata());\n+      }\n+    };\n+\n+    stream.cancel(Status.DEADLINE_EXCEEDED);\n+\n+    verify(mockListener, times(1)).closed(isA(Status.class), isA(Metadata.class));\n+  }\n+\n+  @Test\n+  public void newStreamFailsOnNullListener() {\n+    thrown.expect(NullPointerException.class);\n+\n+    new BaseAbstractClientStream<Integer>(allocator, null);\n+  }\n+\n+  @Test\n+  public void deframeFailed_notifiesListener() {\n+    AbstractClientStream<Integer> stream =\n+        new BaseAbstractClientStream<Integer>(allocator, mockListener) {\n+      @Override\n+      protected void sendCancel(Status errorStatus) {\n+        transportReportStatus(errorStatus, true/*stop delivery*/, new Metadata());\n+      }\n+    };\n+\n+    stream.deframeFailed(new RuntimeException(\"something bad\"));\n+\n+    verify(mockListener).closed(statusCaptor.capture(), isA(Metadata.class));\n+    assertEquals(Code.INTERNAL, statusCaptor.getValue().getCode());\n+  }\n+\n+  @Test\n+  public void inboundDataReceived_failsOnNullFrame() {\n+    ClientStreamListener listener = new BaseClientStreamListener();\n+    AbstractClientStream<Integer> stream =\n+        new BaseAbstractClientStream<Integer>(allocator, listener);\n+    thrown.expect(NullPointerException.class);\n+\n+    stream.inboundDataReceived(null);\n+  }\n+\n+  @Test\n+  public void inboundDataReceived_failsOnNoHeaders() {\n+    AbstractClientStream<Integer> stream =\n+        new BaseAbstractClientStream<Integer>(allocator, mockListener);\n+    stream.inboundPhase(Phase.HEADERS);\n+\n+    stream.inboundDataReceived(ReadableBuffers.empty());\n+\n+    verify(mockListener).closed(statusCaptor.capture(), isA(Metadata.class));\n+    assertEquals(Code.INTERNAL, statusCaptor.getValue().getCode());\n+  }\n+\n+  @Test\n+  public void inboundHeadersReceived_notifiesListener() {\n+    AbstractClientStream<Integer> stream =\n+        new BaseAbstractClientStream<Integer>(allocator, mockListener);\n+    Headers headers = new Metadata.Headers();\n+\n+    stream.inboundHeadersReceived(headers);\n+    verify(mockListener).headersRead(headers);\n+  }\n+\n+  @Test\n+  public void inboundHeadersReceived_failsOnPhaseStatus() {\n+    AbstractClientStream<Integer> stream =\n+        new BaseAbstractClientStream<Integer>(allocator, mockListener);\n+    Headers headers = new Metadata.Headers();\n+    stream.inboundPhase(Phase.STATUS);\n+\n+    thrown.expect(IllegalStateException.class);\n+\n+    stream.inboundHeadersReceived(headers);\n+  }\n+\n+  @Test\n+  public void inboundHeadersReceived_succeedsOnPhaseMessage() {\n+    AbstractClientStream<Integer> stream =\n+        new BaseAbstractClientStream<Integer>(allocator, mockListener);\n+    Headers headers = new Metadata.Headers();\n+    stream.inboundPhase(Phase.MESSAGE);\n+\n+    stream.inboundHeadersReceived(headers);\n+\n+    verify(mockListener).headersRead(headers);\n+  }\n+\n+  @Test\n+  public void inboundHeadersReceived_acceptsGzipEncoding() {\n+    AbstractClientStream<Integer> stream =\n+        new BaseAbstractClientStream<Integer>(allocator, mockListener);\n+    Headers headers = new Metadata.Headers();\n+    headers.put(ChannelImpl.MESSAGE_ENCODING_KEY, new MessageEncoding.Gzip().getMessageEncoding());\n+\n+    stream.inboundHeadersReceived(headers);\n+    verify(mockListener).headersRead(headers);\n+  }\n+\n+  @Test\n+  public void inboundHeadersReceived_acceptsIdentityEncoding() {\n+    AbstractClientStream<Integer> stream =\n+        new BaseAbstractClientStream<Integer>(allocator, mockListener);\n+    Headers headers = new Metadata.Headers();\n+    headers.put(ChannelImpl.MESSAGE_ENCODING_KEY, MessageEncoding.NONE.getMessageEncoding());\n+\n+    stream.inboundHeadersReceived(headers);\n+    verify(mockListener).headersRead(headers);\n+  }\n+\n+  @Test\n+  public void inboundHeadersReceived_notifiesListenerOnBadEncoding() {\n+    AbstractClientStream<Integer> stream =\n+        new BaseAbstractClientStream<Integer>(allocator, mockListener);\n+    Headers headers = new Metadata.Headers();\n+    headers.put(ChannelImpl.MESSAGE_ENCODING_KEY, \"bad\");\n+\n+    stream.inboundHeadersReceived(headers);\n+\n+    verify(mockListener).closed(statusCaptor.capture(), isA(Metadata.class));\n+    assertEquals(Code.INVALID_ARGUMENT, statusCaptor.getValue().getCode());\n+  }\n+\n+  /**\n+   * No-op base class for testing.\n+   */\n+  private static class BaseAbstractClientStream<T> extends AbstractClientStream<T> {\n+    protected BaseAbstractClientStream(\n+        WritableBufferAllocator allocator, ClientStreamListener listener) {\n+      super(allocator, listener);\n+    }\n+\n+    @Override\n+    public void request(int numMessages) {}\n+\n+    @Override\n+    protected void sendFrame(WritableBuffer frame, boolean endOfStream, boolean flush) {}\n+\n+    @Override\n+    protected void sendCancel(Status reason) {}\n+\n+    @Override\n+    public T id() {\n+      return null;\n+    }\n+\n+    @Override\n+    protected void returnProcessedBytes(int processedBytes) {}\n+  }\n+\n+  /**\n+   * No-op base class for testing.\n+   */\n+  private static class BaseClientStreamListener implements ClientStreamListener {","path":"core/src/test/java/io/grpc/internal/AbstractClientStreamTest.java","position":241,"original_position":241,"commit_id":"8d40f48a33dfaeeaacc895b3dd42ecdf4e2dbfc9","original_commit_id":"8d40f48a33dfaeeaacc895b3dd42ecdf4e2dbfc9","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":"Although it doesn't matter too much, it does seem you could just use `mockListener` anywhere you use this. I do see you only use the mock when you will verify it. I figure you could just construct the AbstractClientStream as a field and get rid of the BaseAbstractClientStream construction in all but three tests.\r\n\r\nBut I'm also fine with the current organization.","created_at":"2015-08-20T16:23:23Z","updated_at":"2015-08-20T16:23:23Z","html_url":"https://github.com/grpc/grpc-java/pull/841#discussion_r37550026","pull_request_url":"https://api.github.com/repos/grpc/grpc-java/pulls/841","_links":{"self":{"href":"https://api.github.com/repos/grpc/grpc-java/pulls/comments/37550026"},"html":{"href":"https://github.com/grpc/grpc-java/pull/841#discussion_r37550026"},"pull_request":{"href":"https://api.github.com/repos/grpc/grpc-java/pulls/841"}}},"pull_request":{"url":"https://api.github.com/repos/grpc/grpc-java/pulls/841","id":42877645,"html_url":"https://github.com/grpc/grpc-java/pull/841","diff_url":"https://github.com/grpc/grpc-java/pull/841.diff","patch_url":"https://github.com/grpc/grpc-java/pull/841.patch","issue_url":"https://api.github.com/repos/grpc/grpc-java/issues/841","number":841,"state":"open","locked":false,"title":"Add some Unit tests to Abstract Client Stream","user":{"login":"carl-mastrangelo","id":8943572,"avatar_url":"https://avatars.githubusercontent.com/u/8943572?v=3","gravatar_id":"","url":"https://api.github.com/users/carl-mastrangelo","html_url":"https://github.com/carl-mastrangelo","followers_url":"https://api.github.com/users/carl-mastrangelo/followers","following_url":"https://api.github.com/users/carl-mastrangelo/following{/other_user}","gists_url":"https://api.github.com/users/carl-mastrangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/carl-mastrangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carl-mastrangelo/subscriptions","organizations_url":"https://api.github.com/users/carl-mastrangelo/orgs","repos_url":"https://api.github.com/users/carl-mastrangelo/repos","events_url":"https://api.github.com/users/carl-mastrangelo/events{/privacy}","received_events_url":"https://api.github.com/users/carl-mastrangelo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-19T23:47:00Z","updated_at":"2015-08-20T16:23:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a929070e2f01253e4364ce050c311d0ec8b78c97","assignee":{"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},"milestone":null,"commits_url":"https://api.github.com/repos/grpc/grpc-java/pulls/841/commits","review_comments_url":"https://api.github.com/repos/grpc/grpc-java/pulls/841/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/841/comments","statuses_url":"https://api.github.com/repos/grpc/grpc-java/statuses/8d40f48a33dfaeeaacc895b3dd42ecdf4e2dbfc9","head":{"label":"carl-mastrangelo:bzipper","ref":"bzipper","sha":"8d40f48a33dfaeeaacc895b3dd42ecdf4e2dbfc9","user":{"login":"carl-mastrangelo","id":8943572,"avatar_url":"https://avatars.githubusercontent.com/u/8943572?v=3","gravatar_id":"","url":"https://api.github.com/users/carl-mastrangelo","html_url":"https://github.com/carl-mastrangelo","followers_url":"https://api.github.com/users/carl-mastrangelo/followers","following_url":"https://api.github.com/users/carl-mastrangelo/following{/other_user}","gists_url":"https://api.github.com/users/carl-mastrangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/carl-mastrangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carl-mastrangelo/subscriptions","organizations_url":"https://api.github.com/users/carl-mastrangelo/orgs","repos_url":"https://api.github.com/users/carl-mastrangelo/repos","events_url":"https://api.github.com/users/carl-mastrangelo/events{/privacy}","received_events_url":"https://api.github.com/users/carl-mastrangelo/received_events","type":"User","site_admin":false},"repo":{"id":38781678,"name":"grpc-java","full_name":"carl-mastrangelo/grpc-java","owner":{"login":"carl-mastrangelo","id":8943572,"avatar_url":"https://avatars.githubusercontent.com/u/8943572?v=3","gravatar_id":"","url":"https://api.github.com/users/carl-mastrangelo","html_url":"https://github.com/carl-mastrangelo","followers_url":"https://api.github.com/users/carl-mastrangelo/followers","following_url":"https://api.github.com/users/carl-mastrangelo/following{/other_user}","gists_url":"https://api.github.com/users/carl-mastrangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/carl-mastrangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carl-mastrangelo/subscriptions","organizations_url":"https://api.github.com/users/carl-mastrangelo/orgs","repos_url":"https://api.github.com/users/carl-mastrangelo/repos","events_url":"https://api.github.com/users/carl-mastrangelo/events{/privacy}","received_events_url":"https://api.github.com/users/carl-mastrangelo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carl-mastrangelo/grpc-java","description":"The Java gRPC implementation. HTTP/2 based RPC","fork":true,"url":"https://api.github.com/repos/carl-mastrangelo/grpc-java","forks_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/forks","keys_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/teams","hooks_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/hooks","issue_events_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/issues/events{/number}","events_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/events","assignees_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/assignees{/user}","branches_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/branches{/branch}","tags_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/tags","blobs_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/statuses/{sha}","languages_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/languages","stargazers_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/stargazers","contributors_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/contributors","subscribers_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/subscribers","subscription_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/subscription","commits_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/contents/{+path}","compare_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/merges","archive_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/downloads","issues_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/issues{/number}","pulls_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/pulls{/number}","milestones_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/milestones{/number}","notifications_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/labels{/name}","releases_url":"https://api.github.com/repos/carl-mastrangelo/grpc-java/releases{/id}","created_at":"2015-07-08T21:45:19Z","updated_at":"2015-07-08T21:45:20Z","pushed_at":"2015-08-19T23:47:36Z","git_url":"git://github.com/carl-mastrangelo/grpc-java.git","ssh_url":"git@github.com:carl-mastrangelo/grpc-java.git","clone_url":"https://github.com/carl-mastrangelo/grpc-java.git","svn_url":"https://github.com/carl-mastrangelo/grpc-java","homepage":"","size":3719,"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":"d2ab1c26cbf719364638660868439c31ee8ca716","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-08-20T15:54:54Z","pushed_at":"2015-08-20T16:18:07Z","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":21427,"stargazers_count":831,"watchers_count":831,"language":"Java","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":193,"mirror_url":null,"open_issues_count":114,"forks":193,"open_issues":114,"watchers":831,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grpc/grpc-java/pulls/841"},"html":{"href":"https://github.com/grpc/grpc-java/pull/841"},"issue":{"href":"https://api.github.com/repos/grpc/grpc-java/issues/841"},"comments":{"href":"https://api.github.com/repos/grpc/grpc-java/issues/841/comments"},"review_comments":{"href":"https://api.github.com/repos/grpc/grpc-java/pulls/841/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/841/commits"},"statuses":{"href":"https://api.github.com/repos/grpc/grpc-java/statuses/8d40f48a33dfaeeaacc895b3dd42ecdf4e2dbfc9"}}}}