> +   public AvailabilityZoneApiLiveTest() {
> +      super();
> +      provider = "openstack-cinder";
> +   }
> +
> +   @BeforeClass(groups = {"integration", "live"})
> +   public void setupContext() {
> +      super.setup();
> +      String zone = Iterables.getFirst(api.getConfiguredZones(), 
> "regionOne");
> +      availabilityZoneApi = api.getAvailabilityZoneApi(zone);
> +   }
> +
> +   public void testListAvailabilityZones() {
> +      ImmutableList<? extends AvailabilityZone> cinderZones = 
> availabilityZoneApi.list().toList();
> +
> +      assertTrue(cinderZones.size() > 0);

Prefer `isEmpty()` rather than `size() > 0`. This would read 
`assertTrue(!cinderZones.isEmpty())`

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

Reply via email to