JUnit 5 – A Complete Practical Guide

Become an Automation Test engineer and learn JUnit 5, one of the most popular unit-testing frameworks in Java ecosystem.

A warm welcome to the JUnit 5 course by Uplatz.

What you’ll learn

  • Get started with JUnit 5.
  • Learn JUnit 5 Annotations and Assertions.
  • Understand JUnit 5 Timeouts and Exceptions.
  • Write Unit Tests and Parameterized Tests with JUnit 5.
  • Understand JUnit 5 Tagging and Filtering.
  • Take a deep-dive into Hamcrest Framework.
  • Unit Testing and Integration Testing on Spring Boot Repository.

Course Content

  • JUnit Introduction –> 1 lecture • 21min.
  • Adding JUnit 5 Dependency in Maven Project –> 1 lecture • 8min.
  • JUnit 5 Annotations –> 3 lectures • 1hr 8min.
  • JUnit 5 @RepeatedTest Annotation –> 1 lecture • 8min.
  • JUnit 5 Assertions –> 2 lectures • 55min.
  • JUnit 5 Timeouts –> 1 lecture • 19min.
  • JUnit 5 Expected Exceptions –> 1 lecture • 20min.
  • JUnit 5 Parameterized Tests –> 1 lecture • 24min.
  • JUnit 5 How to run Unit Test with Maven –> 1 lecture • 24min.
  • JUnit 5 Tagging and Filtering –> 1 lecture • 18min.
  • Hamcrest Framework –> 1 lecture • 35min.
  • Unit Testing on Spring Boot Repository –> 1 lecture • 49min.
  • Spring Boot Integration Testing –> 1 lecture • 51min.

JUnit 5 - A Complete Practical Guide

Requirements

A warm welcome to the JUnit 5 course by Uplatz.

 

JUnit is a popular unit-testing framework in the Java ecosystem. JUnit 5 added many new features based on the Java 8 version of the language. JUnit 5 is the most widely used testing framework for Java applications. For a very long time, JUnit has been doing its job perfectly.

This JUnit 5 course will help you learn how to understanding why unit tests are important, structure of good unit tests, dynamic and parameterized tests, extensions, code coverage, create and execute unit tests with JUnit 5, and many more topics. This JUnit course focuses on the usage of the framework.

 

JUnit 5 consists of several different modules:

  • JUnit Jupiter: JUnit Jupiter includes new programming and extension models for writing tests. It has all new JUnit annotations and TestEngine implementation to run tests written with these annotations.
  • JUnit Platform: To be able to launch junit tests, IDEs, build tools or plugins need to include and extend platform APIs. It defines the TestEngine API for developing new testing frameworks that runs on the JUnit platform. It also provides a Console Launcher to launch the platform from the command line and build plugins for Gradle and Maven.
  • JUnit Vintage: It provides support to run JUnit 3 and JUnit 4 written tests on the JUnit 5 platform. It’s there is backward compatibility.

 

JUnit 5 – Course Syllabus

 

  • JUnit Introduction
  • Adding JUnit5 dependency in Maven project
  • JUnit5 Annotations
  • JUnit5 @RepeatedTest Annotation
  • JUnit5 Assertions
  • JUnit5 Timeouts
  • JUnit5 Expected Exceptions
  • JUnit5 Parameterized Tests
  • JUnit5 How to run Unit Test with Maven
  • JUnit5 Tagging and Filtering
  • Hamcrest Framework
  • Unit Testing on Spring Boot Repository
  • Spring Boot Integration Testing
Get Tutorial