November 2024
Intermediate to advanced
300 pages
7h 12m
English
In the previous chapter, you took a small piece of code and wrote a few JUnit tests around it. In the process, you learned how to structure your tests, execute them, how to interpret results, and what test to write next.
You’ve only scratched the surface of what it means to write tests for code. In this chapter, you’ll examine several common code constructs and learn how to test them. These are the topics you’ll cover:
First, however, let’s talk about the word unit in unit test.
Read now
Unlock full access