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[] {}));
}
Aggregations