> + * Creates a test api for the given class and URL. > + */ > + protected <T extends Closeable> T api(Class<T> apiClass, String url) { > + Properties properties = new Properties(); > + properties.setProperty(PROPERTY_TRUST_ALL_CERTS, "true"); > + properties.setProperty(PROPERTY_RELAX_HOSTNAME, "true"); > + addConnectionProperties(properties); > + return > ContextBuilder.newBuilder(AnonymousProviderMetadata.forApiOnEndpoint(apiClass, > url)) > + .modules(ImmutableSet.<Module> > of(createConnectionModule())).overrides(properties) > + .buildApi(apiClass); > + } > + > + /** > + * Add the connection properties used to configure the tests. > + */ > + protected abstract void addConnectionProperties(Properties props);
could be named to make clear these go into `ContextBuilder.overrides()` --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/232/files#r8624400