jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds] [SoftLayer] fix some failing LiveTests (#838)
Date Mon, 10 Aug 2015 20:47:44 GMT
>  
>     @BeforeClass(groups = {"integration", "live"})
>     @Override
>     public void setup() {
>        super.setup();
>        virtualGuestApi = api.getVirtualGuestApi();
> +      datacenter = Iterables.get(api.getDatacenterApi().listDatacenters(), 0);
> +      if (datacenter == null) Assert.fail();

Use `assertNotNull` with a meaningful message.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/838/files#r36682363
Mime
View raw message