Search in sources :

Example 11 with X509Thumbprint

use of com.microsoft.azure.sdk.iot.service.auth.X509Thumbprint in project azure-iot-sdk-java by Azure.

the class X509ThumbprintTest method constructorSetsPrimaryAndSecondaryThumbprints.

// Tests_SRS_X509THUMBPRINT_34_006: [This constructor shall create an X509Thumbprint with the provided primary thumbprint and the provided secondary thumbprint.]
@Test
public void constructorSetsPrimaryAndSecondaryThumbprints() {
    // act
    X509Thumbprint thumbprint = createTestThumbprint(expectedPrimaryThumbprint, expectedSecondaryThumbprint);
    // assert
    assertEquals(expectedPrimaryThumbprint, Deencapsulation.invoke(thumbprint, "getPrimaryThumbprint", new Class[] {}));
    assertEquals(expectedSecondaryThumbprint, Deencapsulation.invoke(thumbprint, "getSecondaryThumbprint", new Class[] {}));
}
Also used : X509Thumbprint(com.microsoft.azure.sdk.iot.service.auth.X509Thumbprint) Test(org.junit.Test)

Aggregations

X509Thumbprint (com.microsoft.azure.sdk.iot.service.auth.X509Thumbprint)11 Test (org.junit.Test)9 AuthenticationMechanism (com.microsoft.azure.sdk.iot.service.auth.AuthenticationMechanism)3 BaseDevice (com.microsoft.azure.sdk.iot.service.BaseDevice)2 ExportImportDevice (com.microsoft.azure.sdk.iot.service.ExportImportDevice)1 Before (org.junit.Before)1