use of org.broadinstitute.dsde.workbench.client.sam.api.GroupApi in project terra-workspace-manager by DataBiosphere.
the class PrivateResourceCleanupServiceTest method buildGroupApi.
private GroupApi buildGroupApi(AuthenticatedUserRequest userRequest) {
// Each ApiClient manages its own threadpool. If we start using this method from more than a
// handful of tests, we should refactor this to share the ApiClient object across tests.
ApiClient apiClient = new ApiClient().setBasePath(samConfiguration.getBasePath());
apiClient.setAccessToken(userRequest.getRequiredToken());
return new GroupApi(apiClient);
}