use of com.linkedin.restli.examples.groups.client.GroupsFluentClient in project rest.li by linkedin.
the class TestParseqBasedFluentClientApi method testCollectionEntityActionWithNoReturn.
@Test
public void testCollectionEntityActionWithNoReturn() throws Exception {
// TestGroupsResource
String testEmail = "test@test.com";
TransferOwnershipRequest ownershipRequest = new TransferOwnershipRequest();
ownershipRequest.setNewOwnerContactEmail(testEmail);
int testId = 9999;
ownershipRequest.setNewOwnerMemberID(testId);
Groups groupsFluentClient = new GroupsFluentClient(_parSeqRestliClient, _parSeqUnitTestHelper.getEngine());
CompletableFuture<Void> response = groupsFluentClient.transferOwnership(1, param -> param.setRequest(ownershipRequest)).toCompletableFuture();
response.get(5000, TimeUnit.MILLISECONDS);
assert (!response.isCompletedExceptionally());
}
Aggregations