Introduction
  • Introduction
  • Course Overview
Section 1 - Mocking With Mockito
  • Step 00 - Section Introduction - Mocking with Mockito
  • Step 01 - Setting up the project using Spring Initializr
  • COURSE UPDATE: JUNIT 4 vs JUNIT 5
  • Step 02 - Writing Unit Test for a Simple Business Service
  • Step 03 - Setting up a Business Service to call a Data Service
  • Step 04 - Writing your first unit test with Stub
  • Step 05 - Exercise Solution - Updating Tests 2 & 3 to use Stubs
  • Step 06 - Writing Unit Tests with Mocking using Mockito
  • Step 07 - Exercise Solution - Updating Tests 2 & 3 to use Mockito
  • JUnit 5 Alert
  • Step 08 - More Refactoring - @Mock, @InjectMocks and @RunWith(MockitoJUnitRunner
  • Step 09 - Mockito Tips - Multiple Return Values and Specific Argument Matchers
  • Step 10 - Mockito Tips - Argument Matchers
  • Step 11 - Mockito Tips - Verify method calls
  • Step 12 - Mockito Tips - Argument Capture
  • Step 13 - Mockito Tips - Argument Capture on Multiple Calls
  • Step 14 - Introduction to Spy
  • Step 15 - Mockito FAQ
Section 2 - Unit Testing With Spring Boot And Mockito
  • Step 00 - Section Introduction - Unit Testing with Spring Boot and Mockito
  • Fastest Approach to Solve All Your Exceptions
  • Step 01 - Creating a Hello World Controller
  • JUnit 5 Alert
  • Step 02 - Using Mock Mvc to test Hello World Controller
  • Step 03 - Using Response Matchers to check status and content
  • Step 04 - Creating a Basic REST Service in Item Controller
  • Step 05 - Unit Testing Item Controller and Basic JSON Assertions
  • Step 06 - Digging deeper into JSON Assert
  • Step 07 - Writing a REST Service talking to Business Layer
  • Step 08 - Writing Unit Test for REST Service mocking Business Layer
  • Step 09 - 00 - Overview of Steps 09 to 15
  • COURSE UPDATE : H2 Database URL
  • Step 09 - 01 - Prepare Data Layers with JPA, Hibernate and H2
  • Step 10 - Create Item Entity and Populate data with data.sql
  • Step 11 - Create a RESTful Service talking to the database
  • Step 12 - Writing Unit Test for Web Layer - Controller - Using Mock MVC
  • Step 13 - Exercise & Solution - Writing Unit Test for Business Layer - Mocking
  • JUnit 5 Alert
  • Step 14 - Writing Unit Test for Data Layer - Data JPA Test
  • JUnit 5 Alert
  • Step 15 - Writing an Integration Test using @SpringBootTest
  • Step 16 - Tip - Using @MockBean to mock out dependencies you do not want to talk
  • Step 17 - Tip - Creating Different Test Configuration
  • Step 18 - Writing Unit Tests for Other Request Methods
  • Step 19 - Refactor SomeBusinessImpl to use Functional Programming
  • Step 20 - Better Assertions with Hamcrest - HamcrestMatcherTest
  • Step 21 - Better Assertions with AssertJ - AssertJTest
  • Step 22 - Better Assertions with JSONPath - JSONPathTest
  • Step 23 - Tip Patterns - xunitpatterns
  • Step 24 - Tip - Measuring Test Coverage with Eclipse
  • Step 25 - Tip - Keep an eye on performance of unit tests!
  • Step 26 - Good Unit Tests
Congratulations
  • Bonus Lecture
  • Next Steps