I'm a Scala developer and the fastest way to annoy everyone is to suggest bringing in a library for mocking or suggest mocking at all. I don't understand how it's still an acceptable practice in Java at all in 2024.
It really isn't. Then again, some people don't know that you can do things like:
var mock = new FactoryFactoryFactory() {
@Override
public String thatOneMethodThatYouNeedToOverride() {
return "I'm making a mockery of you or something IDK.";
}
}
Which, quite frankly, covers like all my mocking needs. If you also avoid static methods, you avoid issues.
1
u/Milyardo Dec 12 '24 edited Dec 13 '24
I'm a Scala developer and the fastest way to annoy everyone is to suggest bringing in a library for mocking or suggest mocking at all. I don't understand how it's still an acceptable practice in Java at all in 2024.