> +   }
> +
> +   /**
> +    * Get a string from a resource
> +    *
> +    * @param resourceName
> +    *           The name of the resource.
> +    * @return The content of the resource
> +    */
> +   public String stringFromResource(String resourceName) {
> +      try {
> +         return 
> Strings2.toStringAndClose(getClass().getResourceAsStream(resourceName));
> +      } catch (IOException e) {
> +         throw Throwables.propagate(e);
> +      }
> +   }

Create a base class for all mock tests and move the common logic there: api 
creation, common assertions, etc.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/282/files/56c8b214ce51990e7709991bc55605190195b133#r67432124

Reply via email to