> + */
> +@Test(groups = "live", testName = "InternalURLLiveTest")
> +public class InternalURLLiveTest extends BaseNovaApiLiveTest {
> +
> +     @Singleton
> +     class InternalUrlModule extends AbstractModule {
> +             @Override
> +             protected void configure() {
> +                     
> bind(EndpointToSupplierInternalURI.class).to(InternalURL.class);
> +             }               
> +     }
> +     
> +     @Test(description = "InternalUrl service endpoints loader")
> +    public void testGetInternalUrlServiceEndpoint() throws Exception {
> +      Iterable<Module> modules = ImmutableSet.<Module> 
> of(getLoggingModule(), new InternalUrlModule());
> +      NovaApi novaApi = 
> ContextBuilder.newBuilder(provider).modules(modules).overrides(setupProperties()).buildApi(NovaApi.class);

What happens if, rather than creating our own API here, we override 
[`setupModules`](https://github.com/jclouds/jclouds/blob/master/core/src/test/java/org/jclouds/apis/BaseApiLiveTest.java#L87)
 and then use the 
[`api`](https://github.com/jclouds/jclouds/blob/master/core/src/test/java/org/jclouds/apis/BaseApiLiveTest.java#L49)
 that the test harness creates?

I'm not sure this will initially change much, but then at least we're using the 
"standard" context setup for live tests?

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

Reply via email to