@Test public void testMissingSpotMaxPrice() { InstanceTemplate instanceTemplate = new InstanceTemplate("", "", 0L, Collections.emptyList(), InstanceStatus.STARTED, Map.of(), 0L, "imageId"); AwsInstanceView actual = new AwsInstanceView(instanceTemplate); assertNull(actual.getSpotMaxPrice()); }
public Double getSpotMaxPrice() { return instanceTemplate.getParameter(AwsInstanceTemplate.EC2_SPOT_MAX_PRICE, Double.class); }
AwsInstanceView { public Double getSpotMaxPrice() { return instanceTemplate.getParameter(AwsInstanceTemplate.EC2_SPOT_MAX_PRICE, Double.class); } }
AwsInstanceView { public Double getSpotMaxPrice() { return instanceTemplate.getParameter(AwsInstanceTemplate.EC2_SPOT_MAX_PRICE, Double.class); } AwsInstanceView(InstanceTemplate instanceTemplate); }
AwsInstanceView { public Double getSpotMaxPrice() { return instanceTemplate.getParameter(AwsInstanceTemplate.EC2_SPOT_MAX_PRICE, Double.class); } AwsInstanceView(InstanceTemplate instanceTemplate); List<Volume> getVolumes(); String getFlavor(); String getGroupName(); Long getPrivateId(); Long getTemplateId(); boolean isEncryptedVolumes(); boolean isKmsEnabled(); boolean isKmsDefault(); boolean isKmsCustom(); String getKmsKey(); Integer getSpotPercentage(); Double getSpotMaxPrice(); int getOnDemandPercentage(); boolean isFastEbsEncryptionEnabled(); }
AwsInstanceView { public Double getSpotMaxPrice() { return instanceTemplate.getParameter(AwsInstanceTemplate.EC2_SPOT_MAX_PRICE, Double.class); } AwsInstanceView(InstanceTemplate instanceTemplate); List<Volume> getVolumes(); String getFlavor(); String getGroupName(); Long getPrivateId(); Long getTemplateId(); boolean isEncryptedVolumes(); boolean isKmsEnabled(); boolean isKmsDefault(); boolean isKmsCustom(); String getKmsKey(); Integer getSpotPercentage(); Double getSpotMaxPrice(); int getOnDemandPercentage(); boolean isFastEbsEncryptionEnabled();  }