Learn how to implement custom JUnit4 test runners.
Search Results for: junit
Inject Parameters into JUnit Jupiter Unit Tests
A quick look at how to extend JUnit 5 with parameters.
Migrating from JUnit 4 to JUnit 5
Learn how to migrate from JUnit 4 to the latest JUnit 5 release – with an overview of the differences between the two versions.
A Guide to JUnit 5 Extensions
JUnit 5 Extensions can be used to extend the behavior of test classes or methods.
Guide to Dynamic Tests in Junit 5
Learn about dynamic tests introduced in JUnit 5 – a new programming model that supports full test lifecycle.
Introduction to JUnitParams
A quick and practical guide to a very useful library which will help you write parameterized unit tests – JUnitParams.
A Guide to @RepeatedTest in JUnit 5
Learn different ways of using and configuring the @RepeatedTest annotation provided by JUnit.
A Quick JUnit vs TestNG Comparison
A quick look at JUnit compared to TestNG – the other popular testing framework in the Java ecosystem.
Guide to Selenium with JUnit / TestNG
A quick guide to writing tests with Selenium in Java.
A Guide to JUnit 5
A quick and practical guide to JUnit 5
How to Test a Spring AOP Aspect
Learn how to conduct unit and integration tests on Spring AOP aspects.
Intro to Apache Commons Configuration Project
Apache Commons Configuration can be used to allow us to specify configuration parameters to be loaded at runtime by our application. We look at a few use cases and types of configuration files.
Get 2’s Complement of a Number in Java
Learn how to get the 2’s complement of a number in Java.
Continue the Test Even After Assertion Failure in TestNG
Learn how to make multiple assertions using TestNG’s SoftAssert and find out why that is a valuable tool for writing clean tests with reduced debugging time.
Calculating Moving Averages in Java
Let’s explore various methods and techniques for calculating moving averages, ranging from traditional approaches to libraries and Stream API’s.
How to Intercept a Request and Add Headers in WebFlux
Explore different ways of intercepting and adding custom headers for both server web requests and web client requests in Spring WebFlux
Exploring Complex Number Arithmetic Operations in Java
Learn how to perform complex-number operations in Java.
Java Weekly, Issue 537
Record as DTOs, stream peeking, JUnit 5 parameterized tests, Java 22, and idempotency key!
The Difference Between Throwing an Exception and Mono.error() in Spring Webflux
In this tutorial, we learn the differences between throwing an exception and Mono.error() in Spring WebFlux.
Multiple-Level Mock Injection Into Mockito Spy Objects
Learn how Mockito annotations work in multiple-level injection scenarios.