> @@ -85,12 +85,19 @@ protected static MockWebServer mockWebServer(Dispatcher
> dispatcher) throws IOExc
> * Creates a test api for the given class and URL.
> */
> protected <T extends Closeable> T api(Class<T> apiClass, String url) {
> + return api(apiClass, url, createConnectionModule());
> + }
> +
> + /**
> + * Creates a test api for the given class, URI and Module.
> + */
> + protected <T extends Closeable> T api(Class<T> apiClass, String url,
> Module... connectionModules) {
Note that this class exists only in the test jar, so it would be redundant.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/619/files#r21222696