use of io.vertx.mqtt.messages.MqttPublishMessage in project hono by eclipse.
the class VertxBasedMqttProtocolAdapterTest method newMessage.
private static MqttPublishMessage newMessage(final MqttQoS qosLevel, final String topic, final Buffer payload) {
final MqttPublishMessage message = mock(MqttPublishMessage.class);
when(message.qosLevel()).thenReturn(qosLevel);
when(message.topicName()).thenReturn(topic);
when(message.payload()).thenReturn(payload);
return message;
}
Aggregations