Mock elastic search data

这一生的挚爱 提交于 2020-01-05 05:29:05

问题


How do I mock elastic search data. In the below code rs is an interface which is implemented by ElasticSearchDriver class. rs will have elastic search db details which inturn gets added in the results.

While writing unit tests for this code how do we mock the elastic search data.

ListThread listThread = new ListThread(rs, index, QueryMap, sortOrder)
results.add(executor.submit(listThread));

来源:https://stackoverflow.com/questions/40084131/mock-elastic-search-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!