> @@ -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 connectionModule) {
[minor] If we're going to add an overloaded version anyway, allow the caller to
pass an arbitrary set/list/collection of additional modules?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/619/files#r21065183