Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
CloudOfThingsPlatform: remove unused parameter tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
Ursula Walenciak committed May 22, 2017
1 parent e0e7a42 commit 62079fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ public CloudOfThingsPlatform(String host, String username, String password) {
* with the CoT over HTTP proxy server.
*
* @param host URL to the host to connect to.
* @param tenant the tenant of the platform.
* @param username the username of the platform user.
* @param password the username of the platform user.
* @param proxyHost hostname of the HTTP proxy server
* @param proxyPort port of the HTTP proxy server.
*/
public CloudOfThingsPlatform(String host, String tenant, String username, String password, String proxyHost, int proxyPort) {
public CloudOfThingsPlatform(String host, String username, String password, String proxyHost, int proxyPort) {
OkHttpClient client = new OkHttpClient.Builder()
.proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort)))
.readTimeout(1, TimeUnit.MINUTES)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void testProxyConnection() throws Exception {

@Test(expectedExceptions = CotSdkException.class)
public void testBadProxyConnection() throws Exception {
CloudOfThingsPlatform cotPlatform = new CloudOfThingsPlatform(TestHelper.TEST_HOST, TestHelper.TEST_TENANT, TestHelper.TEST_USERNAME, TestHelper.TEST_PASSWORD, "127.99.88.77", 1111);
CloudOfThingsPlatform cotPlatform = new CloudOfThingsPlatform(TestHelper.TEST_HOST, TestHelper.TEST_USERNAME, TestHelper.TEST_PASSWORD, "127.99.88.77", 1111);
InventoryApi inventoryApi = cotPlatform.getInventoryApi();
inventoryApi.get("test");
}
Expand Down

0 comments on commit 62079fe

Please sign in to comment.