Search in sources :

Example 1 with CustomTypes2

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

the class TestParseqBasedFluentClientApi method testTypeRef_keyTypeRef.

// ----- Test TypeRef cases ------
@Test
public void testTypeRef_keyTypeRef() throws Exception {
    CustomTypes2 customTypes2FluentClient = new CustomTypes2FluentClient(_parSeqRestliClient, _parSeqUnitTestHelper.getEngine());
    Assert.assertEquals(customTypes2FluentClient.get(new CustomLong(1L)).toCompletableFuture().get(5000, TimeUnit.MILLISECONDS).getId().longValue(), 1L);
}
Also used : CustomTypes2(com.linkedin.restli.examples.greetings.client.CustomTypes2) CustomTypes2FluentClient(com.linkedin.restli.examples.greetings.client.CustomTypes2FluentClient) CustomLong(com.linkedin.restli.examples.custom.types.CustomLong) Test(org.testng.annotations.Test)

Aggregations

CustomLong (com.linkedin.restli.examples.custom.types.CustomLong)1 CustomTypes2 (com.linkedin.restli.examples.greetings.client.CustomTypes2)1 CustomTypes2FluentClient (com.linkedin.restli.examples.greetings.client.CustomTypes2FluentClient)1 Test (org.testng.annotations.Test)1