use of com.sequenceiq.environment.api.v1.environment.model.response.LocationResponse in project cloudbreak by hortonworks.
the class CloudStorageLocationValidatorTest method setUp.
@BeforeEach
public void setUp() {
LocationResponse locationResponse = LocationResponseBuilder.aLocationResponse().withName(ENV_REGION).build();
when(environment.getLocation()).thenReturn(locationResponse);
when(environment.getCloudPlatform()).thenReturn(CLOUD_PLATFORM);
when(environment.getCredential()).thenReturn(new CredentialResponse());
when(credentialToCloudCredentialConverter.convert(any(Credential.class))).thenReturn(CLOUD_CREDENTIAL);
}
Aggregations