-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
standardize on one mocking lib (remove jmockit and powermock) #3025
Comments
What is your reason for chosing mockito? |
@christophsturm I support this. If you drive it and make reasonable decisions it will happen. Previously we've discussed it but there need to be someone actually doing it as well. Perhaps add another issue in https://github.com/bisq-network/style/issues on the topic of mocking as well. |
reasons for mockito:
last reason and for me the main reason: jmockit and powermock both have powerful static mocking methods which mockito does not have by design, and I think simpler mocking enforces better design. It is possible that not all these reasons are true or still true because i don't know much about jmockit, i just saw that we have a pretty complicated setup. |
This has been discussed here: bisq-network/proposals#74 |
ok that proposal seems to mostly agree with my conclusion. |
are there still other mocking frameworks in use? |
no this is fixed |
right now we use 3 different mock libraries: jmockit, mockito, and powermock (with mockito api)
I think we should only use mockito. There probably should be two subtickets for this, one to remove jmockit(probably a quick change), and one to remove powermock (needs architectural changes but also not hard.)
The text was updated successfully, but these errors were encountered: