

JUnit and Mockito Crash Course
- Offered byUDEMY
JUnit and Mockito Crash Course at UDEMY Overview
Duration | 6 hours |
Total fee | ₹549 |
Mode of learning | Online |
Credential | Certificate |
JUnit and Mockito Crash Course at UDEMY Highlights
- Certificate of completion
- 6 hours on-demand video
- 15 downloadable resources and 1 article
- Access on mobile and TV
- 30-Day Money-Back Guarantee
- Full Lifetime Access
JUnit and Mockito Crash Course at UDEMY Course details
- After completing the course learner will:
- Learn what Unit Testing is
- Understand the importance of Unit Testing
- Learn the JUnit Framework and API
- Learn what mocking is and why we should mock
- Write tests using JUnit and Mockito
- Learn What Test Coverage is and how to measure it
- All in simple and easy steps
- Spring Testing Quick Start
- PowerMock Quick Start
- Parameterized JUnit
- In over 2 hours of lectures this course covers necessary JUnit API and its usage with Mockito
- This course covers the importance of unit testing , how to effectively use JUnit ,how mocking works and how to use Mockito to write real unit tests
- Up on completion learner will be able to test Java and JavaEE applications ,run unit tests as a part of build and measure code coverage and improve it
JUnit and Mockito Crash Course at UDEMY Curriculum
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