use of com.hazelcast.simulator.common.SimulatorProperties in project hazelcast-simulator by hazelcast.
the class CloudProviderUtilsTest method testIsCloudProvider_withStatic.
@Test
public void testIsCloudProvider_withStatic() {
SimulatorProperties properties = getSimulatorProperties(PROVIDER_STATIC);
assertFalse(isCloudProvider(properties));
}
use of com.hazelcast.simulator.common.SimulatorProperties in project hazelcast-simulator by hazelcast.
the class CloudProviderUtilsTest method testIsStatic_fromProperties_withStatic.
@Test
public void testIsStatic_fromProperties_withStatic() {
SimulatorProperties properties = getSimulatorProperties(PROVIDER_STATIC);
assertTrue(CloudProviderUtils.isStatic(properties));
}
use of com.hazelcast.simulator.common.SimulatorProperties in project hazelcast-simulator by hazelcast.
the class CloudProviderUtilsTest method testIsCloudProvider_withLocal.
@Test
public void testIsCloudProvider_withLocal() {
SimulatorProperties properties = getSimulatorProperties(PROVIDER_LOCAL);
assertFalse(isCloudProvider(properties));
}
use of com.hazelcast.simulator.common.SimulatorProperties in project hazelcast-simulator by hazelcast.
the class CloudProviderUtilsTest method testIsEC2_fromProperties_withEC2.
@Test
public void testIsEC2_fromProperties_withEC2() {
SimulatorProperties properties = getSimulatorProperties(PROVIDER_EC2);
assertTrue(CloudProviderUtils.isEC2(properties));
}
use of com.hazelcast.simulator.common.SimulatorProperties in project hazelcast-simulator by hazelcast.
the class ProvisionerUtilsTest method testEnsureIsRemoteSetup_withLocal.
@Test(expected = CommandLineExitException.class)
public void testEnsureIsRemoteSetup_withLocal() {
SimulatorProperties properties = mock(SimulatorProperties.class);
when(properties.getCloudProvider()).thenReturn(CloudProviderUtils.PROVIDER_LOCAL);
ensureIsRemoteSetup(properties, "terminate");
}
Aggregations