mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Securemock is a wrapper around Mockito that monkey patches internals of Mockito to work with the SecurityManager. However, the library has not been updated in several years due to the complicated nature of this monkey patching. This has left us with an ancient version of Mockito, missing out on updates to the library in the last half decade. While Securemock currently works with Mockito 1.x, in 2.x an official means of plugging into mockito was added, MockMaker. This commit removes securemock as a dependnecy of the test framework, replacing it with a modern version of Mockito, and implementing a MockMaker that integrates with SecurityManager. Note that while there is a newer version of Mockito available, 4.0, it has several deprecations removed that are used throughout Elasticsearch. Those can be addressed in followups, and then a subsequent upgrade to 4.0 should be possible. relates #79567 closes #40334 |
||
---|---|---|
.. | ||
qa/ssl-enabled | ||
src | ||
build.gradle | ||
roles.yml | ||
testnode.crt | ||
testnode.jks |