Search in sources :

Example 1 with ComplexKeysRequestBuilders

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

the class TestComplexKeysResource method testBatchPartialUpdate.

@Test(dataProvider = com.linkedin.restli.internal.common.TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "requestBuilderDataProvider")
public void testBatchPartialUpdate(RootBuilderWrapper<ComplexResourceKey<TwoPartKey, TwoPartKey>, Message> builders) throws RemoteInvocationException {
    final RestliRequestOptions requestOptions = builders.getRequestOptions();
    testBatchPartialUpdateMain(builders.batchPartialUpdate(), new ComplexKeysRequestBuilders(requestOptions).batchGet());
}
Also used : RestliRequestOptions(com.linkedin.restli.client.RestliRequestOptions) AnnotatedComplexKeysRequestBuilders(com.linkedin.restli.examples.greetings.client.AnnotatedComplexKeysRequestBuilders) ComplexKeysRequestBuilders(com.linkedin.restli.examples.greetings.client.ComplexKeysRequestBuilders) Test(org.testng.annotations.Test)

Example 2 with ComplexKeysRequestBuilders

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

the class TestComplexKeysResource method testCreateId.

@Test(dataProvider = com.linkedin.restli.internal.common.TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "requestOptionsDataProvider")
public void testCreateId(RestliRequestOptions requestOptions) throws RemoteInvocationException {
    final ComplexKeysRequestBuilders builders = new ComplexKeysRequestBuilders(requestOptions);
    testCreateMainNewBuilders(builders.create(), builders.get());
}
Also used : AnnotatedComplexKeysRequestBuilders(com.linkedin.restli.examples.greetings.client.AnnotatedComplexKeysRequestBuilders) ComplexKeysRequestBuilders(com.linkedin.restli.examples.greetings.client.ComplexKeysRequestBuilders) Test(org.testng.annotations.Test)

Example 3 with ComplexKeysRequestBuilders

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

the class TestComplexKeysResource method testBatchDelete.

@Test(dataProvider = com.linkedin.restli.internal.common.TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "requestBuilderDataProvider")
public void testBatchDelete(RootBuilderWrapper<ComplexResourceKey<TwoPartKey, TwoPartKey>, Message> builders) throws RemoteInvocationException {
    final RestliRequestOptions requestOptions = builders.getRequestOptions();
    testBatchDeleteMain(builders.batchDelete(), builders.create(), new ComplexKeysRequestBuilders(requestOptions).batchGet());
}
Also used : RestliRequestOptions(com.linkedin.restli.client.RestliRequestOptions) AnnotatedComplexKeysRequestBuilders(com.linkedin.restli.examples.greetings.client.AnnotatedComplexKeysRequestBuilders) ComplexKeysRequestBuilders(com.linkedin.restli.examples.greetings.client.ComplexKeysRequestBuilders) Test(org.testng.annotations.Test)

Example 4 with ComplexKeysRequestBuilders

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

the class TestComplexKeysResource method testBatchCreateId.

@Test(dataProvider = com.linkedin.restli.internal.common.TestConstants.RESTLI_PROTOCOL_1_2_PREFIX + "requestOptionsDataProvider")
public void testBatchCreateId(RestliRequestOptions requestOptions) throws RemoteInvocationException {
    final ComplexKeysRequestBuilders builders = new ComplexKeysRequestBuilders(requestOptions);
    testBatchCreateIdMain(builders.batchCreate(), builders.batchGet());
}
Also used : AnnotatedComplexKeysRequestBuilders(com.linkedin.restli.examples.greetings.client.AnnotatedComplexKeysRequestBuilders) ComplexKeysRequestBuilders(com.linkedin.restli.examples.greetings.client.ComplexKeysRequestBuilders) Test(org.testng.annotations.Test)

Aggregations

AnnotatedComplexKeysRequestBuilders (com.linkedin.restli.examples.greetings.client.AnnotatedComplexKeysRequestBuilders)4 ComplexKeysRequestBuilders (com.linkedin.restli.examples.greetings.client.ComplexKeysRequestBuilders)4 Test (org.testng.annotations.Test)4 RestliRequestOptions (com.linkedin.restli.client.RestliRequestOptions)2