DeviceTwinCommon 类

定义

Utility functions, setup and teardown for all device twin integration tests. This class should not contain any tests, but any child class should.

public class DeviceTwinCommon extends IntegrationTest
继承
java.lang.Object
DeviceTwinCommon

继承成员

构造函数

DeviceTwinCommon(IotHubClientProtocol protocol, AuthenticationType authenticationType, ClientType clientType)

字段

DELAY_BETWEEN_OPERATIONS
DESIRED_PROPERTIES_PROPAGATION_TIME_MILLISECONDS
ERROR_INJECTION_WAIT_TIMEOUT_MILLISECONDS
iotHubConnectionString
MAX_DEVICES
MAX_PROPERTIES_TO_TEST
MAX_WAIT_TIME_FOR_VERIFICATION_MILLISECONDS
MAXIMUM_TIME_FOR_IOTHUB_PROPAGATION_BETWEEN_DEVICE_SERVICE_CLIENTS
MULTITHREADED_WAIT_TIMEOUT_MILLISECONDS
PAGE_SIZE
PERIODIC_WAIT_TIME_FOR_VERIFICATION
PROPERTY_KEY
PROPERTY_KEY_QUERY
PROPERTY_VALUE
PROPERTY_VALUE_ARRAY
PROPERTY_VALUE_QUERY
PROPERTY_VALUE_UPDATE
PROPERTY_VALUE_UPDATE_ARRAY
PROPERTY_VALUE_UPDATE_ARRAY_PREFIX
PROPERTY_VALUE_UPDATE2
PROPERTY_VALUE_UPDATE2_ARRAY
PROPERTY_VALUE_UPDATE2_ARRAY_PREFIX
REPORTED_PROPERTIES_PROPAGATION_DELAY_MILLISECONDS
RETRY_MILLISECONDS
SEND_TIMEOUT_MILLISECONDS
START_TWIN_TIMEOUT_MILLISECONDS
TAG_KEY
TAG_VALUE
TAG_VALUE_UPDATE
testInstance

方法

addMultipleDevices(int numberOfDevices)
addMultipleDevices(int numberOfDevices, boolean openDeviceClients)
buildDeviceTwinClientWithAzureSasCredential()
cleanup()
inputs()
readReportedArrayPropertiesAndVerify(DeviceState deviceState, int expectedReportedPropCount)
readReportedPropertiesAndVerify(DeviceState deviceState, String startsWithValue, int expectedReportedPropCount)
sendReportedArrayPropertiesAndVerify(int numOfProp)
sendReportedPropertiesAndVerify(int numOfProp)
setConnectionStatusCallBack(final List<com.microsoft.azure.sdk.iot.device.DeviceTwin.Pair<IotHubConnectionStatus, Throwable>> actualStatusUpdates)
setUpNewDeviceAndModule()
setUpNewDeviceAndModule(boolean openDeviceClient)
setUpTwin(DeviceState deviceState, boolean openDeviceClient, InternalClient client)
subscribeToDesiredPropertiesAndVerify(int numOfProp, Object propertyValue, Object propertyUpdateValue, String propertyNewValuePrefix)
testGetDeviceTwin()
waitAndVerifyDesiredPropertyCallback(String propPrefix, boolean withVersion)
waitAndVerifyTwinStatusBecomesSuccess()

适用于