use of com.microsoft.azure.sdk.iot.device.transport.mqtt.MqttDeviceMethod in project azure-iot-sdk-java by Azure.
the class MqttDeviceMethodTest method sendThrowsOnMessageNull.
// Tests_SRS_MqttDeviceMethod_25_016: [send method shall throw an exception if the message is null.]
@Test(expected = IllegalArgumentException.class)
public void sendThrowsOnMessageNull() throws TransportException {
MqttDeviceMethod testMethod = new MqttDeviceMethod("", mockConnectOptions, new HashMap<Integer, Message>(), new ConcurrentLinkedQueue<Pair<String, byte[]>>());
testMethod.start();
// act
testMethod.send(null);
}
Aggregations