package cn.edu.zjvtit.cloudstorage.dataservice;

import cn.edu.zjvtit.cloudstorage.dataservice.rabbitmq.topic.Sender;
import org.junit.jupiter.api.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;

//@SpringBootTest
//class DataServiceApplicationTests {
//
//    @Test
//    void contextLoads() {
//    }
//
//}
@RunWith(SpringRunner.class)
@SpringBootTest
class RabbitMqHelloTest {

    @Autowired
    private Sender helloSender;

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

}

