@Test void spotLifeCycle() { Instance spotInstance = new Instance().withInstanceLifecycle(InstanceLifecycleType.Spot); CloudInstanceLifeCycle lifeCycle = underTest.getLifeCycle(spotInstance); Assertions.assertThat(lifeCycle).isEqualTo(CloudInstanceLifeCycle.SPOT); }
public CloudInstanceLifeCycle getLifeCycle(Instance instance) { return InstanceLifecycleType.Spot.toString().equals(instance.getInstanceLifecycle()) ? CloudInstanceLifeCycle.SPOT : CloudInstanceLifeCycle.NORMAL; }
AwsLifeCycleMapper { public CloudInstanceLifeCycle getLifeCycle(Instance instance) { return InstanceLifecycleType.Spot.toString().equals(instance.getInstanceLifecycle()) ? CloudInstanceLifeCycle.SPOT : CloudInstanceLifeCycle.NORMAL; } }
AwsLifeCycleMapper { public CloudInstanceLifeCycle getLifeCycle(Instance instance) { return InstanceLifecycleType.Spot.toString().equals(instance.getInstanceLifecycle()) ? CloudInstanceLifeCycle.SPOT : CloudInstanceLifeCycle.NORMAL; }  }
AwsLifeCycleMapper { public CloudInstanceLifeCycle getLifeCycle(Instance instance) { return InstanceLifecycleType.Spot.toString().equals(instance.getInstanceLifecycle()) ? CloudInstanceLifeCycle.SPOT : CloudInstanceLifeCycle.NORMAL; }  CloudInstanceLifeCycle getLifeCycle(Instance instance); }
AwsLifeCycleMapper { public CloudInstanceLifeCycle getLifeCycle(Instance instance) { return InstanceLifecycleType.Spot.toString().equals(instance.getInstanceLifecycle()) ? CloudInstanceLifeCycle.SPOT : CloudInstanceLifeCycle.NORMAL; }  CloudInstanceLifeCycle getLifeCycle(Instance instance);  }