diff --git a/docs-ref-autogen/com.microsoft.azure.sdk.iot.device._device_client.yml b/docs-ref-autogen/com.microsoft.azure.sdk.iot.device._device_client.yml index c58aecbc8503..c77d6c866461 100644 --- a/docs-ref-autogen/com.microsoft.azure.sdk.iot.device._device_client.yml +++ b/docs-ref-autogen/com.microsoft.azure.sdk.iot.device._device_client.yml @@ -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: >- -
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
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
if the connection to an IoT Hub cannot be closed.
+- 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: >- +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
if the connection to an IoT Hub cannot be closed.
- 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: >-Initializes an IoT Hub device client with the given parameters.
@@ -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: >-Asynchronously sends an event message to the IoT Hub.
@@ -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: >-Sends reported properties
@@ -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: >-Sets the message callback.
@@ -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: >-Sets a runtime option identified by parameter
Starts the device twin.
@@ -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: >-Subscribes to desired properties
@@ -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: >-Subscribes to device methods
@@ -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 diff --git a/docs-ref-autogen/tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.yml b/docs-ref-autogen/tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.yml index ce75eb53b52a..d93e1b222649 100644 --- a/docs-ref-autogen/tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.yml +++ b/docs-ref-autogen/tests.unit.com.microsoft.azure.sdk.iot.device._device_client_test.yml @@ -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