Mockito: Next-Level Java Unit Testing

Mockito: Next-Level Java Unit Testing

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 28 lectures (1h 45m) | 617 MB

Learn the latest Mockito 3 for Java unit testing in just 2 hours and take your developer career to the next level!

Welcome! My name’s Adrian and I’m a professional Java Developer. You’ve just found the highest rated course about Mockito on Udemy! That’s the only course that teaches the latest Mockito 3. Here are some examples chosen from the reviews :

  • “one of the best courses I finished on Udemy”
  • “clear explanations, real-life examples, and this accent”
  • “the best instructor here so far”

According to statistics, nearly 50% of all Java developers use Mockito when they write tests for their Java applications. It’s a basic skill required by most employees, so if you want to start your Java Developer career or take it to another level, you’ll have to write unit tests. With Mockito, you’ll write them better and faster.

In this course, you’ll learn only the practical aspects of Mockito 3 – the latest version of the most popular mocking framework for Java applications.

I’ll introduce only the essential theory behind mocking, and then dive straight into the code to get you started as quickly as possible. I’ll use an example of a simple, but practical Java project to show you a variety of mocking techniques. You’ll also learn the best practices and coding standards for unit tests based on my developing experience.

This course also comes with a one-page cheat sheet for a quick Mockito 3 reference. You’re welcome to use it freely after the course—it’s bound to save you hours!

What you’ll learn

  • Enrich Java JUnit tests with mocks
  • Learn the latest Mockito 3 version
  • Run unit tests with mocks in Eclipse
  • Work on practical, real-world testing problems
  • Follow mocking best practices
Table of Contents

First things first
1 Introduction
2 Mocking Theory
3 Mocking Frameworks
4 Eclipse Project Setup
5 Using IntelliJ instead of Eclipse
6 What should be mocked

Mockito 3 Basics
7 First Mocks
8 Default Return Values
9 Returning Custom Values
10 Multiple thenReturn Calls
11 Throwing Exceptions
12 Argument Matchers
13 Verifying Behaviour
14 Spies
15 Mocking Void Methods

More Advanced Concepts
16 Argument Captors
17 Annotations
18 Mockito BDD
19 Strict Stubbing
20 Mocking Static Methods
21 Using Mockito Answers
22 Mocking Final and Private Methods
23 Summary
24 Mockito 3 Cheat Sheet
25 Project Source Code 8212 All Tests

Additional Videos
26 PowerMock Do you need it
27 Spring Boot integration

Want to Learn More
28 Bonus Lecture

Homepage