Course introduction
  • Course introduction
Introduction to Java Unit Tests
  • What is a unit test?
  • Why create and use unit tests?
  • Unit tests - mandatory or optional?
Coding part: Write meaningful Unit Tests
  • Create a Spring Boot App that has two endpoints
  • Which classes are we going to unit test and why?
  • Unit tests for the Controller class - addNewCar()
  • Unit tests for the Controller class - getAllCars()
  • Unit tests for the Service class - Code coverage
Tips
  • Golden rule
  • List of things that I try to keep in my mind
Bad practices
  • Try to avoid doing the following
Course recap
  • Course Recap
  • Thank you for your time
  • Helpful Links