# Introduction to JUnit 5 & Mockito — JUnit 5 & Mockito

Source: https://www.geekswithgeeks.com/en/java-testing/java-testing-01

> Apply foundations 1 in JUnit 5 & Mockito.

## Understand Introduction to JUnit 5 & Mockito

In **JUnit 5 & Mockito**, use foundations 1 to connect the problem, constraints, and measurable outcome before selecting an approach.

## Practise the workflow

Start small, verify one result, and record what the evidence changes.

![A four-stage learning workflow.](assets/figures/java-testing/section-1-map.svg) — Figure 1.1 — Understand, act, verify, improve.

## A useful comparison

Think of this as a route plan: each step should lead to a checked destination.

Check your reasoning.

**Quiz:** What should come before choosing an approach?

- [x] A clear goal and constraints.
- [ ] An unverified copy.
- [ ] No measurement.

*Answer:* A clear goal and constraints.. Evidence makes a decision reviewable.
