> +            .rootFile(Resource.builder().fromPayload(v1content).build()) //
> +            .build();
> +
> +      // upload the cookbook to the remote server
> +      api.updateCookbook(cookbookName, "1.0.0", cookbook);
> +   }
> +
> +   @Override
> +   protected void initialize() {
> +      super.initialize();
> +
> +      try {
> +         createCookbooksWithMultipleVersions(PREFIX);
> +         createCookbooksWithMultipleVersions(PREFIX + 1);
> +      } catch (Exception e) {
> +         fail(String.format("Could not create cookbooks: %s", e));

Use better: `fail("Could not create cookbooks", e)`, to let the 'fail' method 
properly report the exception.

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

Reply via email to