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)) } };
}
Aggregations