Chapter 1Build a Testing Foundation
Why do we need a tool like Mockito, and how does it makes our lives as developers easier?
Like many developers, I was a career changer. I came from engineering, where I spent my time with a lot of math and a lot of (shudder) Fortran. Eventually I switched to software, adopted Java in its early years, and retrained for IT. One unexpected benefit of this transition was that the next time I visited my parents, my father told me something in the house was broken, and I was able to reply, “Sorry, that’s a hardware problem.”
I feel that way about most hardware, and, to be honest, about most software too. If the code works, I’m happy. If it doesn’t, then I have to narrow down where it’s failing. Since everything ...
Get Mockito Made Clear now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.