AssertJ – Fluent Assertions in Java

HOME This tutorial describes the usage of the AssertJ – Fluent Assertions framework for writing tests in Java. Introduction to AssertJ The AssertJ project provides fluent assertion statements for test code written in Java. These assert statements are typically used with Java JUnit tests.  AssertJ is composed of several modules: A core module to provide assertions for … Continue reading AssertJ – Fluent Assertions in Java

JUnit5 Assertions Example

HOME JUnit5 contains the assertions available as in JUnit 4 Assertions as well there are a few additional new asserts too. In this post, let’s discuss each new assertion in JUnit5 works in detail with examples. 1. assertIterableEquals The assertIterableEquals() asserts that the expected and the actual iterables are deeply equal. In order to be equal, both iterable … Continue reading JUnit5 Assertions Example

Grouped Assertions in JUnit 5 – assertAll()

HOME What is JUnit5? JUnit 5 is composed of several different modules from three different sub-projects. JUnit 5 = JUnit Platform + JUnit Jupiter + JUnit Vintage The JUnit Platform serves as a foundation for launching testing frameworks on the JVM. It also defines the Test Engine  API for developing a testing framework that runs on the platform. JUnit Jupiter is the combination of the … Continue reading Grouped Assertions in JUnit 5 – assertAll()

JUnit Tutorials

HOME JUnit is an open source Unit Testing Framework for JAVA.JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks. JUnit4 Chapter 1 How to configure Junit in Intellij Chapter 2 How to run JUnit5 tests through Command Line Chapter 3 JUnit4 Assertions Chapter … Continue reading JUnit Tutorials


Something went wrong. Please refresh the page and/or try again.

Follow My Blog

Get new content delivered directly to your inbox.