r/java • • Nov 26 '20

Java libraries I like

https://sizovs.net/2020/11/24/java-libraries-i-like/
285 Upvotes

62 comments sorted by

View all comments

6

u/kag0 Nov 26 '20

Interesting to see mockito and vavr didn't make the list

11

u/zalpha314 Nov 26 '20

I think that we're starting to learn, as a community, that mocks are a slippery slope that can cause more problems than they're worth, especially if used in excess.

I used to use mocking libraries, but I'm now arranging my architecture in a way that they aren't necessary anymore.

4

u/kag0 Nov 26 '20

Definitely agreed, but they are still needed now and then. In those cases, I find mockito preferable to writing fakes by hand.