> +      provider = "digitalocean";
> +   }
> +
> +   protected void initializeImageSizeAndRegion() {
> +      sizes = sortedSizes().sortedCopy(api.getSizesApi().list());
> +      regions = api.getRegionApi().list();
> +      images = newArrayList(filter(api.getImageApi().list(), new 
> Predicate<Image>() {
> +         @Override
> +         public boolean apply(Image input) {
> +            return input.isPublicImage();
> +         }
> +      }));
> +
> +      assertTrue(sizes.size() > 1, "There must be at least two sizes");
> +      assertTrue(regions.size() > 1, "There must be at least two regions");
> +      assertTrue(images.size() > 0, "Image list should not be empty");

`!images.isEmpty()`?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/49/files#r9166790

Reply via email to