This commit is contained in:
OpenPublishBuild 2017-05-05 22:32:40 +00:00
Родитель 8207be278c
Коммит 12bc1346b0
2 изменённых файлов: 218 добавлений и 55 удалений

Просмотреть файл

@ -4,6 +4,7 @@ items:
parent: com.microsoft.azure.sdk.iot.device
children:
- com.microsoft.azure.sdk.iot.device._device_client.close()
- com.microsoft.azure.sdk.iot.device._device_client.closeNow()
- com.microsoft.azure.sdk.iot.device._device_client.config()
- com.microsoft.azure.sdk.iot.device._device_client.CONNECTION_STRING_CHARSET()
- com.microsoft.azure.sdk.iot.device._device_client.DEVICE_ID_ATTRIBUTE()
@ -75,10 +76,10 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/DeviceClient.java
startLine: 254
startLine: 255
package: com.microsoft.azure.sdk.iot.device
summary: >-
<p>Completes all current outstanding requests and closes the IoT Hub client. Must be called to terminate the background thread that is sending data to IoT Hub. After<programlisting><codeline><highlight class="normal">close()<sp></sp></highlight></codeline></programlisting> is called, the IoT Hub client is no longer usable. If the client is already closed, the function shall do nothing.</p>
<p>Completes all current outstanding requests and closes the IoT Hub client. Must be called to terminate the background thread that is sending data to IoT Hub. After<programlisting><codeline><highlight class="normal">close()<sp></sp></highlight></codeline></programlisting> is called, the IoT Hub client is no longer usable. If the client is already closed, the function shall do nothing. : As of release 1.1.25 this call is replaced by<programlisting><codeline><highlight class="normal">closeNow()<sp></sp></highlight></codeline></programlisting></p>
<p></p>
syntax:
@ -86,6 +87,31 @@ items:
exceptions:
- type: cbf33bbe
description: <p>if the connection to an IoT Hub cannot be closed. </p>
- uid: com.microsoft.azure.sdk.iot.device._device_client.closeNow()
id: closeNow()
parent: com.microsoft.azure.sdk.iot.device._device_client
href: com.microsoft.azure.sdk.iot.device._device_client.yml
langs:
- java
name: closeNow()
nameWithType: DeviceClient.closeNow()
fullName: void com.microsoft.azure.sdk.iot.device.DeviceClient.closeNow()
overload: com.microsoft.azure.sdk.iot.device._device_client.closeNow*
type: Method
source:
remote: *o0
path: device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/DeviceClient.java
startLine: 287
package: com.microsoft.azure.sdk.iot.device
summary: >-
<p>Closes the IoT Hub client by releasing any resources held by client. When closeNow is called all the messages that were in transit or pending to be sent will be informed to the user in the callbacks and any existing connection to IotHub will be closed. Must be called to terminate the background thread that is sending data to IoT Hub. After<programlisting><codeline><highlight class="normal">closeNow()<sp></sp></highlight></codeline></programlisting> is called, the IoT Hub client is no longer usable. If the client is already closed, the function shall do nothing.</p>
<p></p>
syntax:
content: public void closeNow()
exceptions:
- type: cbf33bbe
description: <p>if the connection to an IoT Hub cannot be closed. </p>
- uid: com.microsoft.azure.sdk.iot.device._device_client.config()
id: config()
parent: com.microsoft.azure.sdk.iot.device._device_client
@ -159,7 +185,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/DeviceClient.java
startLine: 586
startLine: 619
package: com.microsoft.azure.sdk.iot.device
syntax:
content: protected DeviceClient()
@ -231,7 +257,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/DeviceClient.java
startLine: 517
startLine: 550
package: com.microsoft.azure.sdk.iot.device
summary: >-
<p>Initializes an IoT Hub device client with the given parameters.</p>
@ -414,7 +440,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/DeviceClient.java
startLine: 284
startLine: 317
package: com.microsoft.azure.sdk.iot.device
summary: >-
<p>Asynchronously sends an event message to the IoT Hub.</p>
@ -451,7 +477,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/DeviceClient.java
startLine: 426
startLine: 459
package: com.microsoft.azure.sdk.iot.device
summary: >-
<p>Sends reported properties</p>
@ -539,7 +565,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/DeviceClient.java
startLine: 320
startLine: 353
package: com.microsoft.azure.sdk.iot.device
summary: >-
<p>Sets the message callback.</p>
@ -576,7 +602,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/DeviceClient.java
startLine: 708
startLine: 741
package: com.microsoft.azure.sdk.iot.device
summary: >-
<p>Sets a runtime option identified by parameter<programlisting><codeline><highlight class="normal">optionName<sp></sp></highlight></codeline></programlisting> to<programlisting><codeline><highlight class="normal">value<sp></sp></highlight></codeline></programlisting> .</p>
@ -647,7 +673,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/DeviceClient.java
startLine: 349
startLine: 382
package: com.microsoft.azure.sdk.iot.device
summary: >-
<p>Starts the device twin.</p>
@ -708,7 +734,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/DeviceClient.java
startLine: 393
startLine: 426
package: com.microsoft.azure.sdk.iot.device
summary: >-
<p>Subscribes to desired properties</p>
@ -737,7 +763,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/DeviceClient.java
startLine: 470
startLine: 503
package: com.microsoft.azure.sdk.iot.device
summary: >-
<p>Subscribes to device methods</p>
@ -849,6 +875,11 @@ references:
nameWithType: DeviceClient.close
fullName: void com.microsoft.azure.sdk.iot.device.DeviceClient.close
package: com.microsoft.azure.sdk.iot.device
- uid: com.microsoft.azure.sdk.iot.device._device_client.closeNow*
name: closeNow
nameWithType: DeviceClient.closeNow
fullName: void com.microsoft.azure.sdk.iot.device.DeviceClient.closeNow
package: com.microsoft.azure.sdk.iot.device
- uid: 12fe80de
spec.java:
- name: IllegalStateException

Просмотреть файл

@ -6,6 +6,10 @@ items:
- tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeClosesTransport(@Mocked final ScheduledExecutorService,@Mocked final HttpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
- tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeDoesNothingOnClosedClient(@Mocked final ScheduledExecutorService,@Mocked final AmqpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
- tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeDoesNothingOnUnopenedClient(@Mocked final ScheduledExecutorService,@Mocked final AmqpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
- tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowClosesTransport(@Mocked final ScheduledExecutorService,@Mocked final HttpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
- tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowDoesNothingOnClosedClient(@Mocked final ScheduledExecutorService,@Mocked final AmqpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
- tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowDoesNothingOnUnopenedClient(@Mocked final ScheduledExecutorService,@Mocked final AmqpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
- tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowWaitsForTaskShutdownToFinish(@Mocked final ScheduledExecutorService,@Mocked final HttpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
- tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeWaitsForTaskShutdownToFinish(@Mocked final ScheduledExecutorService,@Mocked final HttpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
- tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.connStringConstructorFailsForNullConnString()
- tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.connStringConstructorFailsIfConnStringFoundBothSharedAccessKeyAndSASToken(@Mocked final AmqpsTransport)
@ -110,7 +114,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 671
startLine: 813
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void closeClosesTransport( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final HttpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
@ -137,7 +141,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 737
startLine: 879
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void closeDoesNothingOnClosedClient( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
@ -164,7 +168,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 704
startLine: 846
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void closeDoesNothingOnUnopenedClient( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
@ -177,6 +181,114 @@ items:
type: 5514d1f5com.microsoft.azure.sdk.iot.device.transport._iot_hub_send_task
- id: mockReceiveTask
type: 5514d1f5com.microsoft.azure.sdk.iot.device.transport._iot_hub_receive_task
- uid: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowClosesTransport(@Mocked final ScheduledExecutorService,@Mocked final HttpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
id: closeNowClosesTransport(@Mocked final ScheduledExecutorService,@Mocked final HttpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
parent: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test
href: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.yml
langs:
- java
name: closeNowClosesTransport( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final HttpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
nameWithType: DeviceClientTest.closeNowClosesTransport( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final HttpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
fullName: void tests.unit.com.microsoft.azure.sdk.iot.device.DeviceClientTest.closeNowClosesTransport( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final HttpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
overload: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowClosesTransport*
type: Method
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 679
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void closeNowClosesTransport( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final HttpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
parameters:
- id: mockScheduler
type: f92ba1f6
- id: mockTransport
type: 5514d1f5com.microsoft.azure.sdk.iot.device.transport.https._https_transport
- id: mockSendTask
type: 5514d1f5com.microsoft.azure.sdk.iot.device.transport._iot_hub_send_task
- id: mockReceiveTask
type: 5514d1f5com.microsoft.azure.sdk.iot.device.transport._iot_hub_receive_task
- uid: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowDoesNothingOnClosedClient(@Mocked final ScheduledExecutorService,@Mocked final AmqpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
id: closeNowDoesNothingOnClosedClient(@Mocked final ScheduledExecutorService,@Mocked final AmqpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
parent: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test
href: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.yml
langs:
- java
name: closeNowDoesNothingOnClosedClient( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
nameWithType: DeviceClientTest.closeNowDoesNothingOnClosedClient( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
fullName: void tests.unit.com.microsoft.azure.sdk.iot.device.DeviceClientTest.closeNowDoesNothingOnClosedClient( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
overload: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowDoesNothingOnClosedClient*
type: Method
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 745
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void closeNowDoesNothingOnClosedClient( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
parameters:
- id: mockScheduler
type: f92ba1f6
- id: mockTransport
type: 5514d1f5com.microsoft.azure.sdk.iot.device.transport.amqps._amqps_transport
- id: mockSendTask
type: 5514d1f5com.microsoft.azure.sdk.iot.device.transport._iot_hub_send_task
- id: mockReceiveTask
type: 5514d1f5com.microsoft.azure.sdk.iot.device.transport._iot_hub_receive_task
- uid: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowDoesNothingOnUnopenedClient(@Mocked final ScheduledExecutorService,@Mocked final AmqpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
id: closeNowDoesNothingOnUnopenedClient(@Mocked final ScheduledExecutorService,@Mocked final AmqpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
parent: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test
href: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.yml
langs:
- java
name: closeNowDoesNothingOnUnopenedClient( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
nameWithType: DeviceClientTest.closeNowDoesNothingOnUnopenedClient( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
fullName: void tests.unit.com.microsoft.azure.sdk.iot.device.DeviceClientTest.closeNowDoesNothingOnUnopenedClient( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
overload: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowDoesNothingOnUnopenedClient*
type: Method
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 712
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void closeNowDoesNothingOnUnopenedClient( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
parameters:
- id: mockScheduler
type: f92ba1f6
- id: mockTransport
type: 5514d1f5com.microsoft.azure.sdk.iot.device.transport.amqps._amqps_transport
- id: mockSendTask
type: 5514d1f5com.microsoft.azure.sdk.iot.device.transport._iot_hub_send_task
- id: mockReceiveTask
type: 5514d1f5com.microsoft.azure.sdk.iot.device.transport._iot_hub_receive_task
- uid: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowWaitsForTaskShutdownToFinish(@Mocked final ScheduledExecutorService,@Mocked final HttpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
id: closeNowWaitsForTaskShutdownToFinish(@Mocked final ScheduledExecutorService,@Mocked final HttpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
parent: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test
href: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.yml
langs:
- java
name: closeNowWaitsForTaskShutdownToFinish( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final HttpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
nameWithType: DeviceClientTest.closeNowWaitsForTaskShutdownToFinish( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final HttpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
fullName: void tests.unit.com.microsoft.azure.sdk.iot.device.DeviceClientTest.closeNowWaitsForTaskShutdownToFinish( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final HttpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
overload: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowWaitsForTaskShutdownToFinish*
type: Method
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 647
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void closeNowWaitsForTaskShutdownToFinish( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final HttpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
parameters:
- id: mockScheduler
type: f92ba1f6
- id: mockTransport
type: 5514d1f5com.microsoft.azure.sdk.iot.device.transport.https._https_transport
- id: mockSendTask
type: 5514d1f5com.microsoft.azure.sdk.iot.device.transport._iot_hub_send_task
- id: mockReceiveTask
type: 5514d1f5com.microsoft.azure.sdk.iot.device.transport._iot_hub_receive_task
- uid: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeWaitsForTaskShutdownToFinish(@Mocked final ScheduledExecutorService,@Mocked final HttpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
id: closeWaitsForTaskShutdownToFinish(@Mocked final ScheduledExecutorService,@Mocked final HttpsTransport,@Mocked final IotHubSendTask,@Mocked final IotHubReceiveTask)
parent: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test
@ -191,7 +303,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 639
startLine: 779
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void closeWaitsForTaskShutdownToFinish( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final HttpsTransport mockTransport, @Mocked final IotHubSendTask mockSendTask, @Mocked final IotHubReceiveTask mockReceiveTask)
@ -836,7 +948,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 772
startLine: 914
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void sendEventAsyncAddsMessageToTransport( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final Message mockMsg, @Mocked final IotHubEventCallback mockCallback)
@ -863,7 +975,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 834
startLine: 976
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void sendEventAsyncFailsIfClientAlreadyClosed( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final Message mockMsg, @Mocked final IotHubEventCallback mockCallback)
@ -890,7 +1002,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 816
startLine: 958
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void sendEventAsyncFailsIfClientNotOpened( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final Message mockMsg, @Mocked final IotHubEventCallback mockCallback)
@ -917,7 +1029,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 798
startLine: 940
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void sendEventAsyncRejectsNullMessage( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final IotHubEventCallback mockCallback)
@ -942,7 +1054,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1253
startLine: 1395
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void sendRPSucceeds(@Mocked final DeviceTwin mockedDeviceTwin, @Mocked final IotHubEventCallback mockedStatusCB, @Mocked final PropertyCallBack mockedPropertyCB, @Mocked final AmqpsTransport mockTransport, @Mocked final Set<Property> mockSet)
@ -971,7 +1083,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1286
startLine: 1428
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void sendRPThrowsIfCalledBeforeStartingTwin(@Mocked final DeviceTwin mockedDeviceTwin, @Mocked final IotHubEventCallback mockedStatusCB, @Mocked final PropertyCallBack mockedPropertyCB, @Mocked final AmqpsTransport mockTransport, @Mocked final Set<Property> mockSet)
@ -1000,7 +1112,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1318
startLine: 1460
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void sendRPThrowsIfCalledWhenClientNotOpen(@Mocked final DeviceTwin mockedDeviceTwin, @Mocked final IotHubEventCallback mockedStatusCB, @Mocked final PropertyCallBack mockedPropertyCB, @Mocked final AmqpsTransport mockTransport, @Mocked final Set<Property> mockSet)
@ -1029,7 +1141,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1348
startLine: 1490
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void sendRPThrowsIfCalledWhenRPNullOrEmpty(@Mocked final DeviceTwin mockedDeviceTwin, @Mocked final IotHubEventCallback mockedStatusCB, @Mocked final PropertyCallBack mockedPropertyCB, @Mocked final AmqpsTransport mockTransport)
@ -1056,7 +1168,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 910
startLine: 1052
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setMessageCallbackRejectsNullCallbackAndNonnullContext( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport)
@ -1079,7 +1191,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 885
startLine: 1027
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setMessageCallbackSetsCallbackContext( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final MessageCallback mockCallback)
@ -1104,7 +1216,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 861
startLine: 1003
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setMessageCallbackSetsMessageCallback( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport, @Mocked final MessageCallback mockCallback)
@ -1129,7 +1241,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1577
startLine: 1719
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setOptionMinimumPollingIntervalAfterOpenFails( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final HttpsTransport mockTransport)
@ -1152,7 +1264,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1594
startLine: 1736
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setOptionMinimumPollingIntervalSucceeds( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final HttpsTransport mockTransport)
@ -1175,7 +1287,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1544
startLine: 1686
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setOptionMinimumPollingIntervalWithAMQPfails( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport)
@ -1198,7 +1310,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1562
startLine: 1704
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setOptionMinimumPollingIntervalWithStringInsteadOfLongFails( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final HttpsTransport mockTransport)
@ -1221,7 +1333,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1771
startLine: 1913
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setOptionSASTokenExpiryTimeAfterClientOpenAMQPSucceeds( @Mocked final AmqpsTransport mockTransport)
@ -1242,7 +1354,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1665
startLine: 1807
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setOptionSASTokenExpiryTimeAfterClientOpenHTTPSucceeds( @Mocked final HttpsTransport mockTransport)
@ -1263,7 +1375,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1838
startLine: 1980
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setOptionSASTokenExpiryTimeAfterClientOpenMQTTSucceeds( @Mocked final MqttTransport mockTransport)
@ -1284,7 +1396,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1706
startLine: 1848
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setOptionSASTokenExpiryTimeAfterClientOpenTransportWithSasTokenSucceeds( @Mocked final HttpsTransport mockTransport)
@ -1305,7 +1417,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1740
startLine: 1882
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setOptionSASTokenExpiryTimeAMQPSucceeds( @Mocked final AmqpsTransport mockTransport)
@ -1326,7 +1438,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1635
startLine: 1777
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setOptionSASTokenExpiryTimeHTTPSucceeds( @Mocked final HttpsTransport mockTransport)
@ -1347,7 +1459,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1808
startLine: 1950
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setOptionSASTokenExpiryTimeMQTTSucceeds( @Mocked final MqttTransport mockTransport)
@ -1368,7 +1480,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1621
startLine: 1763
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setOptionSASTokenExpiryTimeWithStringInsteadOfLongFails( @Mocked final HttpsTransport mockTransport)
@ -1389,7 +1501,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1509
startLine: 1651
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setOptionWithnullOptionNameThrows( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final AmqpsTransport mockTransport)
@ -1412,7 +1524,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1527
startLine: 1669
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void setOptionWithUnknownOptionNameThrows( @Mocked final ScheduledExecutorService mockScheduler, @Mocked final HttpsTransport mockTransport)
@ -1435,7 +1547,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 928
startLine: 1070
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void startDeviceTwinSucceeds(@Mocked final DeviceTwin mockedDeviceTwin, @Mocked final IotHubEventCallback mockedStatusCB, @Mocked final PropertyCallBack mockedPropertyCB, @Mocked final AmqpsTransport mockTransport)
@ -1462,7 +1574,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1022
startLine: 1164
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void startDeviceTwinThrowsIfCalledTwice(@Mocked final DeviceTwin mockedDeviceTwin, @Mocked final IotHubEventCallback mockedStatusCB, @Mocked final PropertyCallBack mockedPropertyCB, @Mocked final AmqpsTransport mockTransport)
@ -1489,7 +1601,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1054
startLine: 1196
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void startDeviceTwinThrowsIfCalledWhenClientNotOpen(@Mocked final DeviceTwin mockedDeviceTwin, @Mocked final IotHubEventCallback mockedStatusCB, @Mocked final PropertyCallBack mockedPropertyCB, @Mocked final AmqpsTransport mockTransport)
@ -1516,7 +1628,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 990
startLine: 1132
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void startDeviceTwinThrowsIfPropCBisNull(@Mocked final DeviceTwin mockedDeviceTwin, @Mocked final IotHubEventCallback mockedStatusCB, @Mocked final PropertyCallBack mockedPropertyCB, @Mocked final AmqpsTransport mockTransport)
@ -1543,7 +1655,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 958
startLine: 1100
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void startDeviceTwinThrowsIfStatusCBisNull(@Mocked final DeviceTwin mockedDeviceTwin, @Mocked final IotHubEventCallback mockedStatusCB, @Mocked final PropertyCallBack mockedPropertyCB, @Mocked final AmqpsTransport mockTransport)
@ -1570,7 +1682,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1379
startLine: 1521
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void subscribeToDeviceMethodSucceeds(@Mocked final IotHubEventCallback mockedStatusCB, @Mocked final DeviceMethodCallback mockedDeviceMethodCB, @Mocked final MqttTransport mockTransport, @Mocked final DeviceMethod mockedMethod)
@ -1597,7 +1709,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1411
startLine: 1553
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void subscribeToDeviceMethodThrowsIfClientNotOpen(@Mocked final IotHubEventCallback mockedStatusCB, @Mocked final DeviceMethodCallback mockedDeviceMethodCB, @Mocked final MqttTransport mockTransport, @Mocked final DeviceMethod mockedMethod)
@ -1624,7 +1736,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1434
startLine: 1576
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void subscribeToDeviceMethodThrowsIfDeviceMethodCallbackNull(@Mocked final IotHubEventCallback mockedStatusCB, @Mocked final DeviceMethodCallback mockedDeviceMethodCB, @Mocked final MqttTransport mockTransport, @Mocked final DeviceMethod mockedMethod)
@ -1651,7 +1763,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1455
startLine: 1597
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void subscribeToDeviceMethodThrowsIfDeviceMethodStatusCallbackNull(@Mocked final IotHubEventCallback mockedStatusCB, @Mocked final DeviceMethodCallback mockedDeviceMethodCB, @Mocked final MqttTransport mockTransport, @Mocked final DeviceMethod mockedMethod)
@ -1678,7 +1790,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1479
startLine: 1621
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void subscribeToDeviceMethodWorksEvenWhenCalledTwice(@Mocked final IotHubEventCallback mockedStatusCB, @Mocked final DeviceMethodCallback mockedDeviceMethodCB, @Mocked final MqttTransport mockTransport, @Mocked final DeviceMethod mockedMethod)
@ -1705,7 +1817,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1084
startLine: 1226
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void subscribeToDPSucceeds(@Mocked final DeviceTwin mockedDeviceTwin, @Mocked final IotHubEventCallback mockedStatusCB, @Mocked final PropertyCallBack mockedPropertyCB, @Mocked final AmqpsTransport mockTransport, @Mocked final Map<Property, Pair<PropertyCallBack<String, Object>, Object>> mockMap)
@ -1734,7 +1846,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1147
startLine: 1289
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void subscribeToDPSucceedsEvenWhenUserCBIsNull(@Mocked final DeviceTwin mockedDeviceTwin, @Mocked final IotHubEventCallback mockedStatusCB, @Mocked final PropertyCallBack mockedPropertyCB, @Mocked final AmqpsTransport mockTransport)
@ -1761,7 +1873,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1221
startLine: 1363
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void subscribeToDPThrowsIfCalledBeforeStartingTwin(@Mocked final DeviceTwin mockedDeviceTwin, @Mocked final IotHubEventCallback mockedStatusCB, @Mocked final PropertyCallBack mockedPropertyCB, @Mocked final AmqpsTransport mockTransport, @Mocked final Map<Property, Pair<PropertyCallBack<String, Object>, Object>> mockMap)
@ -1790,7 +1902,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1188
startLine: 1330
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void subscribeToDPThrowsIfCalledWhenClientNotOpen(@Mocked final DeviceTwin mockedDeviceTwin, @Mocked final IotHubEventCallback mockedStatusCB, @Mocked final PropertyCallBack mockedPropertyCB, @Mocked final AmqpsTransport mockTransport, @Mocked final Map<Property, Pair<PropertyCallBack<String, Object>, Object>> mockMap)
@ -1819,7 +1931,7 @@ items:
source:
remote: *o0
path: device/iot-device-client/src/test/java/tests/unit/com/microsoft/azure/sdk/iot/device/DeviceClientTest.java
startLine: 1116
startLine: 1258
package: tests.unit.com.microsoft.azure.sdk.iot.device
syntax:
content: public void subscribeToDPWorksWhenMapIsNull(@Mocked final DeviceTwin mockedDeviceTwin, @Mocked final IotHubEventCallback mockedStatusCB, @Mocked final PropertyCallBack mockedPropertyCB, @Mocked final AmqpsTransport mockTransport)
@ -2015,6 +2127,26 @@ references:
name: IotHubReceiveTask
fullName: com.microsoft.azure.sdk.iot.device.transport.IotHubReceiveTask
href: com.microsoft.azure.sdk.iot.device.transport._iot_hub_receive_task.yml
- uid: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowWaitsForTaskShutdownToFinish*
name: closeNowWaitsForTaskShutdownToFinish
nameWithType: DeviceClientTest.closeNowWaitsForTaskShutdownToFinish
fullName: void tests.unit.com.microsoft.azure.sdk.iot.device.DeviceClientTest.closeNowWaitsForTaskShutdownToFinish
package: tests.unit.com.microsoft.azure.sdk.iot.device
- uid: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowClosesTransport*
name: closeNowClosesTransport
nameWithType: DeviceClientTest.closeNowClosesTransport
fullName: void tests.unit.com.microsoft.azure.sdk.iot.device.DeviceClientTest.closeNowClosesTransport
package: tests.unit.com.microsoft.azure.sdk.iot.device
- uid: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowDoesNothingOnUnopenedClient*
name: closeNowDoesNothingOnUnopenedClient
nameWithType: DeviceClientTest.closeNowDoesNothingOnUnopenedClient
fullName: void tests.unit.com.microsoft.azure.sdk.iot.device.DeviceClientTest.closeNowDoesNothingOnUnopenedClient
package: tests.unit.com.microsoft.azure.sdk.iot.device
- uid: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeNowDoesNothingOnClosedClient*
name: closeNowDoesNothingOnClosedClient
nameWithType: DeviceClientTest.closeNowDoesNothingOnClosedClient
fullName: void tests.unit.com.microsoft.azure.sdk.iot.device.DeviceClientTest.closeNowDoesNothingOnClosedClient
package: tests.unit.com.microsoft.azure.sdk.iot.device
- uid: tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.closeWaitsForTaskShutdownToFinish*
name: closeWaitsForTaskShutdownToFinish
nameWithType: DeviceClientTest.closeWaitsForTaskShutdownToFinish