RequestSpotInstancesOptions extends BaseEC2RequestOptions { public RequestSpotInstancesOptions validFrom(Date start) { formParameters.put("ValidFrom", service.iso8601SecondsDateFormat(checkNotNull(start, "start"))); return this; }  RequestSpotInstancesOptions validFrom(Date start); RequestSpotInstancesOptions validUntil(Date end); RequestSpotInstancesOptions type(SpotInstanceRequest.Type type); RequestSpotInstancesOptions launchGroup(String launchGroup); RequestSpotInstancesOptions availabilityZoneGroup(String availabilityZoneGroup); static final RequestSpotInstancesOptions NONE; }
@Test public void testFrom() { RequestSpotInstancesOptions options = new RequestSpotInstancesOptions(); options.validFrom(test); assertEquals(options.buildFormParameters().get("ValidFrom"), ImmutableList.of("1970-05-23T21:21:18Z")); }
@Test public void testFromStatic() { RequestSpotInstancesOptions options = validFrom(test); assertEquals(options.buildFormParameters().get("ValidFrom"), ImmutableList.of("1970-05-23T21:21:18Z")); }
@Test(expectedExceptions = NullPointerException.class) public void testFromNPE() { validFrom(null); }