摘要: 1.Junit测试时,使用for循环发送JMS(ReportQuestionSender)的时候,监听器(ReportQuestionListener)只接受到一条消息。 原因:使用Junit测试会阻塞线程。而监听器(ReportQuestionListener)本身就是一个线程。 解决方法:方法的 阅读全文
posted @ 2017-10-19 09:12 一抹微笑~ 阅读(213) 评论(0) 推荐(0)