@Test void scheduledLifeCycle() { Instance scheduledInstance = new Instance().withInstanceLifecycle(InstanceLifecycleType.Scheduled); CloudInstanceLifeCycle lifeCycle = underTest.getLifeCycle(scheduledInstance); Assertions.assertThat(lifeCycle).isEqualTo(CloudInstanceLifeCycle.NORMAL); }
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);  }