> @@ -34,7 +41,14 @@
> @Test
> public void testCreatePayload() {
>
> - Injector injector = Guice.createInjector(new GsonModule());
> + Injector injector = Guice.createInjector(new GsonModule(), new
> AbstractModule() {
> + @Override protected void configure() {
> + bind(new TypeLiteral<Supplier<URI>>() {
> + }).annotatedWith(Provider.class).toInstance(
> + Suppliers.ofInstance(URI.create(new
> ProfitBricksProviderMetadata().getEndpoint())));
> + }
> + });
This will be needed in all binder tests. Create a base test class for all
binder tests that initializes the injector variable in a `@BeforeClass` method,
so tests can just use it and focus on tests.
---
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/245/files/81d75cae7650c99b9c7a2657d5dec2be56163558#r56317197