use of org.cloudfoundry.client.v2.shareddomains.GetSharedDomainResponse in project promregator by promregator.
the class CFAccessorMock method retrieveSharedDomain.
@Override
public Mono<GetSharedDomainResponse> retrieveSharedDomain(String domainId) {
if (domainId.equals(UNITTEST_SHARED_DOMAIN_UUID)) {
SharedDomainEntity entity = SharedDomainEntity.builder().name(UNITTEST_SHARED_DOMAIN).build();
GetSharedDomainResponse resp = GetSharedDomainResponse.builder().entity(entity).build();
return Mono.just(resp);
}
Assert.fail("Invalid shared domain request");
return null;
}
Aggregations