You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/09/14 08:36:23 UTC

[GitHub] [rocketmq-spring] chestarss edited a comment on issue #391: rocketmq in springboot unit test not working

chestarss edited a comment on issue #391:
URL: https://github.com/apache/rocketmq-spring/issues/391#issuecomment-918936739


   its work when i add this config
   @SpringBootTest(classes=Application.class, properties = "rocketmq.name-server=false")
   
   add mock bean for rocketmqtempalte
   
   @MockBean
   private RocketMQTemplate rocketMQTemplate


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org