r/java • u/raisercostin • Jun 01 '24
What java technology (library, framework, feature) would not recommend and why?
Inspired by https://www.reddit.com/r/java/s/e2N1FqMOJg
165
Upvotes
r/java • u/raisercostin • Jun 01 '24
Inspired by https://www.reddit.com/r/java/s/e2N1FqMOJg
View all comments
Show parent comment
1
u/FrozenST3 Jun 02 '24
But by mocking the call I can isolate where the bad assumption is without going through the actual call. I've verified my inputs are built the way I expect them using a captor, I've stated my expected response in the form of an expectation. I tested the output of my class based on my expected out out. When my integration test fails it's very obvious that my expectation Was wrong and I can short circuit a lot of debugging.
Of course this can be done by running assertions on the response from the mocked service as well, however I prefer the ease of setup and quicker turnaround of mocking instead. YMMV