测试类:
import com.wanmait.MqSender;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
public class TestMQ {
@Autowired
private MqSender mqSender;
@Test
public void hello(){
mqSender.send();
}
}
1个回答
我要回答