01Chapter 1: Why Write Unit Tests?A unit test is a small piece of code that checks one small piece of your program, such as one method. It runs the method, then checks that the result is what you expect.2 min read
02Chapter 2: Checking Results with AssertionsAn assertion is a line in a test that checks a result. If the check fails, JUnit marks the test as failed and shows you what went wrong.1 min read