package com.telekom.m2m.cot.restsdk;

import com.telekom.m2m.cot.restsdk.inventory.InventoryApi;
import com.telekom.m2m.cot.restsdk.util.TestHelper;
import org.testng.Assert;
import org.testng.annotations.Test;

/**
 * Created by Patrick Steinert on 30.01.16.
 */
public class CloudOfThingsPlatformTest {

    @Test
    public void testGetInventoryApi() throws Exception {
        CloudOfThingsPlatform cotPlatform = new CloudOfThingsPlatform(TestHelper.TEST_HOST, TestHelper.TEST_USERNAME, TestHelper.TEST_PASSWORD);
        InventoryApi inventoryApi = cotPlatform.getInventoryApi();
        Assert.assertNotNull(inventoryApi);
    }

}

@@ -297,16 +297,215 @@
 rmTest %7B
+%0A    private final static String TEST_HOST = %22https://test.m2m.telekom.com%22;%0A    private final static String TEST_USERNAME = %22tester%22;%0A    private final static String TEST_PASSWORD = %22anything-goes%22;
 %0A%0A    @T
@@ -640,40 +640,18 @@
 rm(T
-estHelper.TEST_HOST, TestHelper.
+EST_HOST, 
 TEST
@@ -665,19 +665,8 @@
 ME, 
-TestHelper.
 TEST

use static test data in CloudOfThingsPlatform unit test to make explicit that the test does *not* require correct credentials