RequestSpotInstancesOptions extends BaseEC2RequestOptions { public RequestSpotInstancesOptions launchGroup(String launchGroup) { formParameters.put("LaunchGroup", checkNotNull(launchGroup, "launchGroup")); 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 testLaunchGroup() { RequestSpotInstancesOptions options = new RequestSpotInstancesOptions(); options.launchGroup("test"); assertEquals(options.buildFormParameters().get("LaunchGroup"), ImmutableList.of("test")); }
@Test public void testLaunchGroupStatic() { RequestSpotInstancesOptions options = launchGroup("test"); assertEquals(options.buildFormParameters().get("LaunchGroup"), ImmutableList.of("test")); }
@Test(expectedExceptions = NullPointerException.class) public void testLaunchGroupNPE() { launchGroup(null); }