Search in sources :

Example 6 with CustomTypes2Builders

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

the class TestCustomTypesRequestBuilders method testCollectionBatchGetKey.

@Test(dataProvider = TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "request2BatchDataProvider")
public void testCollectionBatchGetKey(ProtocolVersion version, String expectedUri) throws IOException, RestException {
    Request<BatchResponse<Greeting>> request = new CustomTypes2Builders().batchGet().ids(new CustomLong(1L), new CustomLong(2L), new CustomLong(3L)).build();
    checkRequestBuilder(request, ResourceMethod.BATCH_GET, BatchResponseDecoder.class, expectedUri, null, version);
}
Also used : BatchResponse(com.linkedin.restli.common.BatchResponse) CustomLong(com.linkedin.restli.examples.custom.types.CustomLong) CustomTypes2Builders(com.linkedin.restli.examples.greetings.client.CustomTypes2Builders) Test(org.testng.annotations.Test)

Aggregations

CustomTypes2Builders (com.linkedin.restli.examples.greetings.client.CustomTypes2Builders)6 Test (org.testng.annotations.Test)6 CustomLong (com.linkedin.restli.examples.custom.types.CustomLong)5 Greeting (com.linkedin.restli.examples.greetings.api.Greeting)5 BatchResponse (com.linkedin.restli.common.BatchResponse)2 BatchKVResponse (com.linkedin.restli.client.response.BatchKVResponse)1 CreateResponse (com.linkedin.restli.client.response.CreateResponse)1 CollectionResponse (com.linkedin.restli.common.CollectionResponse)1 CreateIdStatus (com.linkedin.restli.common.CreateIdStatus)1 CreateStatus (com.linkedin.restli.common.CreateStatus)1 EmptyRecord (com.linkedin.restli.common.EmptyRecord)1 HashSet (java.util.HashSet)1