diff --git a/src/main/java/com/telekom/m2m/cot/restsdk/CloudOfThingsPlatform.java b/src/main/java/com/telekom/m2m/cot/restsdk/CloudOfThingsPlatform.java index fed9811c..21f72f44 100644 --- a/src/main/java/com/telekom/m2m/cot/restsdk/CloudOfThingsPlatform.java +++ b/src/main/java/com/telekom/m2m/cot/restsdk/CloudOfThingsPlatform.java @@ -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) diff --git a/src/test/java/com/telekom/m2m/cot/restsdk/CloudOfThingsPlatformTestIT.java b/src/test/java/com/telekom/m2m/cot/restsdk/CloudOfThingsPlatformTestIT.java index 11f7d3c8..d0899adc 100644 --- a/src/test/java/com/telekom/m2m/cot/restsdk/CloudOfThingsPlatformTestIT.java +++ b/src/test/java/com/telekom/m2m/cot/restsdk/CloudOfThingsPlatformTestIT.java @@ -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"); }