> vapp.delete();
> - assertNull(view.getCloudService().findVirtualAppliance(
> - VirtualAppliancePredicates.name(PREFIX + "Virtual Appliance
> Updated")));
> +
> + assertNull(find(view.getCloudService().listVirtualAppliances(), new
> Predicate<VirtualAppliance>() {
> + @Override
> + public boolean apply(VirtualAppliance input) {
> + return input.getName().equals(name);
> + }
> + }, null));
The `find` method by default throws an exception. These kind of tests could be
refactored to use `filter` and then check that the filtered Iterable is empty.
I'll do the change if it is more understandable.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/10/files#r4962818