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-labs] Profitbricks Drives API (#146)
Date Tue, 03 Mar 2015 21:49:06 GMT
> +   public String imageId;
> +
> +   @Override
> +   protected void initialize() {
> +      super.initialize();
> +
> +      List<Server> servers = api.serverApi().getAllServers();
> +      assertNotNull(servers, "At least one server is required to run drives test.");
> +
> +      Server server = Iterables.getFirst(servers, null);
> +      assertNotNull(server);
> +
> +      this.serverId = server.id();
> +
> +      List<Image> images = api.imageApi().getAllImages();
> +      assertNotNull(images, "At least one image is required to run drives test.");

Same comment about null lists.

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