> @@ -195,6 +195,15 @@ public boolean apply(String name) {
>     public void testList() {
>        List<VirtualMachine> list = api().list();
>        VirtualMachine vm = api().get(getName());
> +      assertTrue(list.size() > 0);
> +      boolean found = false;
> +      for (VirtualMachine virtualMachine : list) {
> +         if (virtualMachine.name().equals(getName())){
> +            found = true;
> +            break;
> +         }
> +      }
> +      assertTrue(found);

Use a more idiomatic `assertTrue(Iterables.any())`.

---
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/291/files/8a39037237f5cccc7d100bc58a9a82bdb89924b1#r67890267

Reply via email to