Testing Java with JUnit 5 & Mockito

- 86%

0
Certificate

Paid

Language

Level

Beginner

Last updated on April 13, 2025 9:24 am

Master the art of unit testing with JUnit 5 and Mockito framework. This beginner-friendly video course covers everything from basic concepts to advanced topics, including Test-Driven Development and Spring Boot integration tests. Learn how to create unit tests in different Java projects using popular development environments and build tools. Enhance your Java applications by gaining essential unit testing skills. Perfect for Java developers looking to improve their testing abilities.

Add your review

What you’ll learn

  • JUnit 5 – basic & advanced topics
  • Test Web Layer and Controllers
  • Test Java code with Mockito – the most popular Mocking Framework.
  • Test Data layer and JPA Repositories
  • Write Spring Boot Integration Tests
  • Test Business layer and Service classes
  • Master Test Driven Development (TDD)
  • And more…

Unit Testing is a must-have skill and this video course is about unit testing.

If you take this video course, you will learn how to test your Java code using JUnit 5 and Mockito framework.

This video course is for beginners and you do not need to have any prior Unit testing knowledge to enrol in this course.

JUnit 5 in Different Java projects

There are different Java projects, build tools and development environments. In this course, you will learn how to create a new project and configure JUnit 5 support for different types of projects, using different development environments and build tools.

You will learn how to create a Unit test in: 

  • IntelliJ IDEA and

  • Eclipse Development environments.

You will learn how to create a Unit test in: 

  • Regular Java project,

  • Maven-based Java project,

  • Cradle-based Java project.

Course Overview

This video course teaches Unit and Integration testing with Java from the very beginning and covers many advanced topics as well. By the end of this course, you will learn:

  • JUnit 5 basics, and

  • JUnit 5 advanced topics.

Once you become familiar with JUnit 5, you will learn to use:

  • Test-Driven Development(TDD)

You will then learn to use another very popular Test framework for Java called: 

  • Mockito

You will also learn how to write:

  • Spring Boot integration tests

By the end of this course you will learn and be able to use all of the following: 

  • Create Unit Tests in IntelliJ,

  • Create Unit Tests in Eclipse,

  • Run unit tests using Gradle,

  • Run Unit Tests using Maven,

  • Use @DisplayName annotation,

  • Use JUnit assertions,

  • Test for Exceptions,

  • Use Lifecycle methods (@BeforeAll, @BeforeEach, @AfterEach, @AfterAll),

  • Run unit tests in any order you need: (Random, Order by Name, Order by Index),

  • Disable Unit test,

  • Repeated Tests with @RepeatedTest annotation,

  • Parameterized tests with @Parameterized annotation

    • @ValueSource,

    • @MethodSource,

    • @CsvSource,

    • @CsvFileSource

  • Change Test Instance lifecycle with @TestInstance (PER_CLASS, PER_METHOD)

  • Learn to Mock objects with Mockito’s @Mock annotation,

  • Learn to user Mockito’s argument matches,

  • Mockito method stubbing,

  • Mockito Exception stubbing,

  • Verify method call,

  • Call Real Method,

  • Do nothing when a method is called,

  • Write integration tests for Spring Boot applications,

  • and more…

Who this course is for:

  • Java developers interested in learning how to test Java applications with JUnit 5

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Be the first to review “Testing Java with JUnit 5 & Mockito”

×

    Your Email (required)

    Report this page
    Testing Java with JUnit 5 & Mockito
    Testing Java with JUnit 5 & Mockito
    LiveTalent.org
    Logo
    LiveTalent.org
    Privacy Overview

    This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.