Search in sources :

Example 1 with CustomTypes3

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

the class TestParseqBasedFluentClientApi method testAssociationFinderUsingCustomAssocKey.

@Test
public void testAssociationFinderUsingCustomAssocKey() throws Exception {
    CustomTypes3 customTypesResource3 = new CustomTypes3FluentClient(_parSeqRestliClient, _parSeqUnitTestHelper.getEngine());
    CollectionResponse<Greeting> greetings = customTypesResource3.findByDateOnly(new Date()).toCompletableFuture().get(5000, TimeUnit.MILLISECONDS);
    Assert.assertTrue(greetings.getElements().size() > 0);
}
Also used : CreateGreeting(com.linkedin.restli.examples.greetings.client.CreateGreeting) Greeting(com.linkedin.restli.examples.greetings.api.Greeting) PartialUpdateGreeting(com.linkedin.restli.examples.greetings.client.PartialUpdateGreeting) CustomTypes3(com.linkedin.restli.examples.greetings.client.CustomTypes3) CustomTypes3FluentClient(com.linkedin.restli.examples.greetings.client.CustomTypes3FluentClient) Date(java.util.Date) Test(org.testng.annotations.Test)

Aggregations

Greeting (com.linkedin.restli.examples.greetings.api.Greeting)1 CreateGreeting (com.linkedin.restli.examples.greetings.client.CreateGreeting)1 CustomTypes3 (com.linkedin.restli.examples.greetings.client.CustomTypes3)1 CustomTypes3FluentClient (com.linkedin.restli.examples.greetings.client.CustomTypes3FluentClient)1 PartialUpdateGreeting (com.linkedin.restli.examples.greetings.client.PartialUpdateGreeting)1 Date (java.util.Date)1 Test (org.testng.annotations.Test)1