Introduction to Spies

This blog post explains what a spy is, describes how we can create spies from the scratch and use them in our automated tests, and helps us to understand when we should use spies. Read More

Introduction to Dummies

This blog post explains what a dummy is, helps us to understand when we should use dummies, and describes how we can create dummies and use them in our automated tests. Read More

Introduction to Fakes

This blog post explains what a fake is, describes how a fake works, explains how we can create fakes and use them in our automated tests, and helps us to understand when we should use fakes. Read More

Introduction to Mocks

This blog post explains what a mock is, describes how a mock works, explains how we can create mocks and use them in our automated tests, and helps us to understand when we should use mocks. Read More

Introduction to Stubs

This blog post describes what a stub is, explains how a stub works, describes how we can create stubs and use them in our automated tests, and helps us to understand when we should use stubs. Read More

Writing Unit Tests for a Spring MVC REST API: Writing Data

This blog post describes how we can send POST requests to the system under test, explains how we can configure the request body of the HTTP request, and describes how we can verify that our REST API is working as expected when validation fails and when validation is successful. Read More