use of com.microsoft.azure.sdk.iot.provisioning.device.internal.contract.ProvisioningDeviceClientContract in project azure-iot-sdk-java by Azure.
the class ProvisioningDeviceClientContractTest method createContractSucceedsHttp.
@Test
public void createContractSucceedsHttp() throws Exception {
// arrange
new NonStrictExpectations() {
{
mockedProvisioningDeviceClientConfig.getIdScope();
result = TEST_SCOPE_ID;
mockedProvisioningDeviceClientConfig.getProvisioningServiceGlobalEndpoint();
result = TEST_URI;
mockedProvisioningDeviceClientConfig.getProtocol();
result = ProvisioningDeviceClientTransportProtocol.HTTPS;
}
};
// act
ProvisioningDeviceClientContract clientContract = ProvisioningDeviceClientContract.createProvisioningContract(mockedProvisioningDeviceClientConfig);
// assert
assertTrue(clientContract instanceof ContractAPIHttp);
}
Aggregations