> +         assertThat(server.getRequestCount()).isEqualTo(2);
> +         assertAuthentication(server);
> +         assertRequest(server.takeRequest(), "POST", 
> "/b2api/v1/b2_list_buckets", "/list_buckets_request.json");
> +      } finally {
> +         server.shutdown();
> +      }
> +   }
> +
> +   @SuppressWarnings("serial")
> +   public B2Api api(String uri, String provider, Properties overrides) {
> +      return ContextBuilder.newBuilder(provider)
> +            .credentials("ACCOUNT_ID", "APPLICATION_KEY")
> +            .endpoint(uri)
> +            .overrides(overrides)
> +            .modules(modules)
> +            .buildApi(new TypeToken<B2Api>(getClass()) {});

Done.

---
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/270/files/8bb355e1b286b2bbf77fd8d3cb75cd2d1aa6bc69#r64489913

Reply via email to