RabbitMqTest.java 679 字节
Newer Older
微笑很纯洁's avatar
微笑很纯洁 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
package com.neo.rabbitmq;

import com.neo.rabbit.HelloSender;
import com.neo.rabbit.NeoReceiver;
import com.neo.rabbit.NeoSender;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class RabbitMqTest {

	@Autowired
	private HelloSender helloSender;

	@Autowired
	private NeoSender neoSender;

	@Test
	public void hello() throws Exception {
		helloSender.send();
	}

	@Test
	public void neo() throws Exception {
		neoSender.send();
	}

}