@@ -0,0 +1,887 @@
+package com.github.brandonbai.smartmonitor;%0A%0Aimport com.github.brandonbai.smartmonitor.config.MqttConfig;%0Aimport com.github.brandonbai.smartmonitor.mqtt.MqttMessageSender;%0Aimport org.aspectj.weaver.loadtime.DefaultMessageHandler;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0A%0A@RunWith(SpringRunner.class)%0A@SpringBootTest%0Apublic class MqttTest %7B%0A%0A    @Autowired%0A    private MqttConfig.DefaultMqttMessageSender defaultMqttMessageSender;%0A%0A    @Autowired%0A    private MqttMessageSender mqttMessageSender;%0A%0A    @Test%0A    public void sendTest() %7B%0A        // %E9%BB%98%E8%AE%A4%E4%B8%BB%E9%A2%98%0A        defaultMqttMessageSender.sendToMqtt(%22123%22);%0A%0A        // %E8%87%AA%E5%AE%9A%E4%B9%89%E4%B8%BB%E9%A2%98%0A        mqttMessageSender.sendMessage(%22sm/123%22, %22haha%22);%0A    %7D%0A%7D%0A

add mqtt test