Search in sources :

Example 16 with Property

use of com.microsoft.azure.sdk.iot.device.DeviceTwin.Property in project azure-iot-sdk-java by Azure.

the class PropertyTest method getKeyGets.

/*
    **Tests_SRS_Property_25_003: [**The function shall return the value of the key corresponding to this property.**]**
     */
@Test
public void getKeyGets() {
    //arrange
    Property testProp = new Property("TestProp", 1);
    //assert
    assertNotNull(testProp);
    assertEquals(testProp.getKey(), "TestProp");
}
Also used : Property(com.microsoft.azure.sdk.iot.device.DeviceTwin.Property) Test(org.junit.Test)

Aggregations

Property (com.microsoft.azure.sdk.iot.device.DeviceTwin.Property)16 Test (org.junit.Test)13 Device (com.microsoft.azure.sdk.iot.device.DeviceTwin.Device)9 Pair (com.microsoft.azure.sdk.iot.device.DeviceTwin.Pair)5 Pair (com.microsoft.azure.sdk.iot.service.devicetwin.Pair)3 ExecutorService (java.util.concurrent.ExecutorService)1