Follow the AAA Pattern
Learn about making effective tests by following the AAA pattern.
We'll cover the following...
We'll cover the following...
When we write tests, we visually organize them into three chunks: arrange, act, and assert, also known as triple-A (AAA).
@Test
public void answersArithmeticMeanOfTwoNumbers() {
// Arrange
ScoreCollection collection = new ScoreCollection();
...