November 2024
Intermediate to advanced
300 pages
7h 12m
English
In this chapter, you learned the important technique of introducing stubs and mocks to emulate the behavior of dependent objects. Your tests don’t have to interact with live services, files, databases, and other troublesome dependencies! You also learned how to use Mockito to simplify your effort in creating and injecting mocks.
You also learned Mockito’s core features, but it can do much more:
Now that you’re empowered with enough unit testing fundamentals to survive, it’s time to explore some bigger-picture unit testing topics: code coverage, integration testing, and tests ...
Read now
Unlock full access