Search in sources :

Example 1 with StreamingGreetingsBuilders

use of com.linkedin.restli.examples.greetings.client.StreamingGreetingsBuilders in project rest.li by linkedin.

the class TestStreamingGreetings method requestBuilderDataProvider.

@DataProvider(name = com.linkedin.restli.internal.common.TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "requestBuilderDataProvider")
private static Object[][] requestBuilderDataProvider() {
    final RestliRequestOptions defaultOptions = new RestliRequestOptionsBuilder().setProtocolVersionOption(ProtocolVersionOption.USE_LATEST_IF_AVAILABLE).setAcceptResponseAttachments(true).build();
    final RestliRequestOptions nextOptions = new RestliRequestOptionsBuilder().setProtocolVersionOption(ProtocolVersionOption.FORCE_USE_NEXT).setAcceptResponseAttachments(true).build();
    return new Object[][] { { new RootBuilderWrapper<Long, Greeting>(new StreamingGreetingsBuilders(defaultOptions)) }, { new RootBuilderWrapper<Long, Greeting>(new StreamingGreetingsBuilders(nextOptions)) } };
}
Also used : Greeting(com.linkedin.restli.examples.greetings.api.Greeting) RestliRequestOptions(com.linkedin.restli.client.RestliRequestOptions) StreamingGreetingsBuilders(com.linkedin.restli.examples.greetings.client.StreamingGreetingsBuilders) RestliRequestOptionsBuilder(com.linkedin.restli.client.RestliRequestOptionsBuilder) DataProvider(org.testng.annotations.DataProvider)

Aggregations

RestliRequestOptions (com.linkedin.restli.client.RestliRequestOptions)1 RestliRequestOptionsBuilder (com.linkedin.restli.client.RestliRequestOptionsBuilder)1 Greeting (com.linkedin.restli.examples.greetings.api.Greeting)1 StreamingGreetingsBuilders (com.linkedin.restli.examples.greetings.client.StreamingGreetingsBuilders)1 DataProvider (org.testng.annotations.DataProvider)1