Software Setup
  • Installing Java SDK and Eclipse IDE
  • Download the completed projects
Introduction
  • Course Introduction
  • Unit Testing Introduction
  • Unit Testing Introduction
JUnit in Action
  • Introduction
  • JUnit Introduction
  • JUnit Introductioin
  • Hello JUnit
  • Hello JUnit
  • Testing for Exceptions
  • Exceptions
  • @Before and @After
  • Before and After
Using JUNIT 5
  • Introduction
  • Maven Introduction
  • Create the project
  • Fix the annotations
  • Assert Exceptions
  • Run Tests
  • Run Tests using Maven
  • Rest of the course
Mockito in Action
  • Introduction
  • Mocking Introduction
  • Mocking Introduction
  • The Order Processor Usecase
  • Create the DAO Layer
  • Create the BO Layer
  • Add the Mockito Dependency
  • Stubbing and Setting Expectations
  • Stubbing and setting expectations
  • Verify the results
  • Verify the results
  • Test a negative scenario
  • Mocking Exceptions
  • Test Cancel Order
  • Cancel Order Negative Scenario
  • Cancel Order Exception Scenario
  • Cancel Order Exception On Update
Use Mockito with JUnit5
  • Introduction
  • Update Usecase
  • Add Dependencies
  • Setup Mocks
  • Test Positive Scenarios
  • Test Negative Scenarios
Test Coverage
  • Introduction
  • Test Coverage
  • Test Coverage
  • EclEmma Installation
  • Measuring coverage using Emma
  • Improving the Coverage
More Mockito
  • Introduction
  • Verification Mode
  • Verify More
  • Create the ScrapBook Project
  • Add the Mockito Dependency
  • Stub Void Methods Implicitly
  • Stub Void Methods Explicitly
  • Use doNothing to test Consecutive calls
Best Practices and Patterns
  • The F.I.R.S.T Principle
  • Test Doubles Introduction
  • Test Doubles In Mockito
  • Partial Mocking Using Mockito Spy
  • Spy vs Mock
Maven and JUnit Quick Start
  • Maven Overview
  • Creating a Maven Project
  • Running Tests
Section 10 - Test Maven Java Web Application
  • Download and Setup the Project
  • Create the Test and Mocks
  • Test doGet
  • Test doPost
Parameterized JUnit
  • Introduction
  • Create The Fields and Constructor
  • Create The Static Data Set Method
  • Create or Update The Test
  • The Parameterized Test Flow
  • Parameterized JUnits
PowerMock Jump Start
  • PowerMock Introduction
  • PowerMock Jump Start
  • Usecase
  • Create the project
  • Download and Add PowerMock Dependencies
  • Prepare For Testing
  • Mock Static Methods and Test
Spring Testing Quick Start
  • Spring Framework Introduction
  • Ticketing Usecase