Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example with multiple items in a streaming response? #55

Open
ryanlewis opened this issue Feb 29, 2024 · 0 comments
Open

Example with multiple items in a streaming response? #55

ryanlewis opened this issue Feb 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ryanlewis
Copy link

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

@ryanlewis ryanlewis added the enhancement New feature or request label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant