use of com.sequenceiq.cloudbreak.cloud.init.CloudPlatformConnectors in project cloudbreak by hortonworks.
the class DefaultRootVolumeTypeProviderTest method setUp.
@BeforeEach
void setUp() {
CloudPlatformConnectors cloudPlatformConnectors = mock(CloudPlatformConnectors.class);
PlatformVariants platformVariants = mock(PlatformVariants.class);
Map<Platform, Variant> variantMap = new HashMap<>();
variantMap.put(Platform.platform("GCP"), Variant.variant("GCP"));
when(platformVariants.getDefaultVariants()).thenReturn(variantMap);
when(cloudPlatformConnectors.getPlatformVariants()).thenReturn(platformVariants);
Environment environment = mock(Environment.class);
when(environment.containsProperty(anyString())).thenReturn(true);
when(environment.getProperty(anyString(), anyString())).thenReturn("SSD");
underTest = new DefaultRootVolumeTypeProvider(cloudPlatformConnectors, environment);
}
Aggregations