AWSDescribeImagesOptions extends DescribeImagesOptions { @Override public AWSDescribeImagesOptions ownedBy(String... owners) { super.ownedBy(owners); return this; }  @Override AWSDescribeImagesOptions executableBy(String identityId); @Override AWSDescribeImagesOptions imageIds(String... imageIds); @Override AWSDescribeImagesOptions imageIds(Iterable<String> imageIds); @Override AWSDescribeImagesOptions ownedBy(String... owners); AWSDescribeImagesOptions filters(Multimap<String, String> filters); AWSDescribeImagesOptions filters(Map<String, String> filters); static final AWSDescribeImagesOptions NONE; }
@Test public void testOwners() { AWSDescribeImagesOptions options = new AWSDescribeImagesOptions(); options.ownedBy("test"); assertEquals(options.buildFormParameters().get("Owner.1"), ImmutableList.of("test")); }
@Test public void testMultipleOwners() { AWSDescribeImagesOptions options = new AWSDescribeImagesOptions(); options.ownedBy("test", "trouble"); assertEquals(options.buildFormParameters().get("Owner.1"), ImmutableList.of("test")); assertEquals(options.buildFormParameters().get("Owner.2"), ImmutableList.of("trouble")); }
@Test public void testOwnersStatic() { AWSDescribeImagesOptions options = ownedBy("test"); assertEquals(options.buildFormParameters().get("Owner.1"), ImmutableList.of("test")); }