Intermediate

Testing Java Services

Tests that catch the bugs that ship.

JUnit 5 and Mockito used well, the test pyramid for a service, Spring Boot test slices, Testcontainers for real databases and brokers, API and contract testing, and performance tests that produce a number you can act on.

3 lessons written4 outlined3 modules~1h reading

After this course you can

  • Write unit tests that test behaviour and survive a refactor
  • Use @WebMvcTest, @DataJpaTest and @SpringBootTest for what each is for
  • Run integration tests against a real Postgres and Kafka with Testcontainers
  • Load-test an endpoint and read the percentiles

Curriculum

7 lessons · outlined lessons show their plan