Skip to content

Example with multiple items in a streaming response? #55

Open
@ryanlewis

Description

@ryanlewis

Proposal

Currently, the example Java project contains an example that returns a streaming response, but only returns a single item:

  @Test
  void unary_request_streaming_response() {
    mockGreetingService.stubFor(
        method("oneGreetingManyReplies")
            .willReturn(message(HelloResponse.newBuilder().setGreeting("Hi Tom"))));

    assertThat(greetingsClient.oneGreetingManyReplies("Tom"), hasItem("Hi Tom"));
  }

Could we add a way to be able to return a stream of responses, i.e. multiple HelloResponse instances?

References

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions