}
public Client(Builder builder) throws ConfigurationException {
+ if (builder.url.endsWith("/")) {
+ //split the last char "/"
+ builder.url = builder.url.substring(0, builder.url.length()-1);
+ }
this.url = builder.url;
this.accessToken = builder.accessToken;
this.httpClient = buildHttpClient(builder);
@Test
public void testClientKeyList() throws Exception {
- client = TestUtils.generateClient();
+ //client = TestUtils.generateClient();
+ client = new Client("http://127.0.0.1:9888/");
List<Key> keyList = Key.list(client);
}