> +   }
> +
> +   @Test(dependsOnMethods = "testCreate")
> +   public void testList() {
> +      final List<ResourceGroup> resourceGroups = api().list();
> +
> +      assertTrue(resourceGroups.size() > 0);
> +
> +      final ResourceGroup matching = Iterables.find(resourceGroups, new 
> Predicate<ResourceGroup>() {
> +
> +         @Override
> +         public boolean apply(final ResourceGroup group) {
> +            return resourcegroup.equals(group.name());
> +         }
> +      });
> +      assertNotNull(matching);

[minor] Use `Iterables.any` instead?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/250/files/f7cc1b437f11378e105bba552e3cfee9d7491872#r57579331

Reply via email to