GitHub user JoshRosen opened a pull request:
https://github.com/apache/spark/pull/4578
[SPARK-5735] Replace uses of EasyMock with Mockito
This patch replaces all uses of EasyMock with Mockito. There are two
motivations for this:
1. We should use a single mocking framework in our tests in order to keep
things consistent.
2. EasyMock may be responsible for non-deterministic unit test failures due
to its Objensis dependency (see SPARK-5626 for more details).
Most of these changes are fairly mechanical translations of Mockito code to
EasyMock, although I made a small change that strengthens the assertions in one
test in KinesisReceiverSuite.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/JoshRosen/spark SPARK-5735-remove-easymock
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4578.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #4578
----
commit fc5e94dd871599a35d4b0b3633f525d2bc1e395c
Author: Josh Rosen <[email protected]>
Date: 2015-02-12T20:08:04Z
Remove EasyMock in CacheManagerSuite
commit 7cca486aa267acaa41070d6eeffe7d2d7174921b
Author: Josh Rosen <[email protected]>
Date: 2015-02-12T20:16:40Z
Remove EasyMock usage in MesosSchedulerBackendSuite
commit fae1d8fe39bdc65389bc3fe7570ddecf676ca428
Author: Josh Rosen <[email protected]>
Date: 2015-02-12T22:26:08Z
Remove EasyMock usage in KinesisReceiverSuite.
commit 977565bb2d67b696f1546cb320144438c1d64131
Author: Josh Rosen <[email protected]>
Date: 2015-02-12T22:30:56Z
Remove EasyMock from build.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]