xiaoyong931011
2020-05-26 995486a0c3b98600c7ff212cc4ba1b05eaccb948
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.xcong.excoin;
 
import com.xcong.excoin.rabbit.producer.TestProducer;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
 
import javax.annotation.Resource;
 
/**
 * @author wzy
 * @date 2020-05-25
 **/
@SpringBootTest
public class RabbitMqTest {
 
    @Autowired
    private TestProducer testProducer;
 
    @Test
    public void sendTestMsg() {
        testProducer.sendTestMsg("this is test msg");
    }
}