How to write unit test for method taking mongo db connection, database and collection name as parameter and returning MongoCollection?

前端 未结 0 760
长发绾君心
长发绾君心 2021-02-04 12:35

Problem

I am trying to unit test the method mentioned below using junit. How should I create mongo database just for unit testing.

<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题