Helius
2021-05-21 d30d959c8f249c20b39e66dd0c48341a77751d21
src/test/java/com/xcong/excoin/OtcTest.java
@@ -6,6 +6,8 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.util.concurrent.TimeUnit;
@Slf4j
@SpringBootTest
public class OtcTest {
@@ -15,6 +17,15 @@
    @Test
    public void rabbitTest() {
        otcProducter.sendMarketBussinessMsg("123456");
        otcProducter.sendDelayOrderMsg("123456");
        while(true){
            try {
                TimeUnit.SECONDS.sleep(1);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}