use of com.hazelcast.simulator.common.SimulatorProperties in project hazelcast-simulator by hazelcast.
the class ProvisionerUtilsTest method testEnsureIsCloudProviderSetup_withEC2.
@Test
public void testEnsureIsCloudProviderSetup_withEC2() {
SimulatorProperties properties = mock(SimulatorProperties.class);
when(properties.getCloudProvider()).thenReturn(CloudProviderUtils.PROVIDER_EC2);
ensureIsCloudProviderSetup(properties, "terminate");
}
use of com.hazelcast.simulator.common.SimulatorProperties in project hazelcast-simulator by hazelcast.
the class ProvisionerUtilsTest method testEnsureIsRemoteSetup_withEC2.
@Test
public void testEnsureIsRemoteSetup_withEC2() {
SimulatorProperties properties = mock(SimulatorProperties.class);
when(properties.getCloudProvider()).thenReturn(CloudProviderUtils.PROVIDER_EC2);
ensureIsRemoteSetup(properties, "terminate");
}
use of com.hazelcast.simulator.common.SimulatorProperties in project hazelcast-simulator by hazelcast.
the class ProvisionerUtilsTest method testEnsureIsCloudProviderSetup_withStatic.
@Test(expected = CommandLineExitException.class)
public void testEnsureIsCloudProviderSetup_withStatic() {
SimulatorProperties properties = mock(SimulatorProperties.class);
when(properties.getCloudProvider()).thenReturn(CloudProviderUtils.PROVIDER_STATIC);
ensureIsCloudProviderSetup(properties, "terminate");
}
use of com.hazelcast.simulator.common.SimulatorProperties in project hazelcast-simulator by hazelcast.
the class CloudProviderUtilsTest method getSimulatorProperties.
private static SimulatorProperties getSimulatorProperties(String cloudProvider) {
SimulatorProperties properties = mock(SimulatorProperties.class);
when(properties.getCloudProvider()).thenReturn(cloudProvider);
return properties;
}
use of com.hazelcast.simulator.common.SimulatorProperties in project hazelcast-simulator by hazelcast.
the class CloudProviderUtilsTest method testIsCloudProvider_withEC2.
@Test
public void testIsCloudProvider_withEC2() {
SimulatorProperties properties = getSimulatorProperties(PROVIDER_EC2);
assertTrue(isCloudProvider(properties));
}
Aggregations