Guide to JUnit 5 Parameterized Tests 1. Overview JUnit 5, the next generation of JUnit, facilitates writing developer tests with new and shiny features. One such feature is parameterized tests. This feature enables us to execute a single test method multiple times with different parameters. In this tutorial, we’re going… Continue Reading parameterized-tests-junit-5

JUnit 5 @Test Annotation 1. Overview In this article, we’ll make a quick review of JUnit’s @Test annotation. This annotation provides a powerful tool for performing unit and regression testing. 2. Maven Configuration To use the latest version of JUnit 5, we’ll need to add the following Maven dependency: <dependency>… Continue Reading junit-5-test-annotation

Mockito and JUnit 5 – Using ExtendWith 1. Introduction In this quick article, we’ll show how to integrate Mockito with the JUnit 5 extension model. To learn more about the JUnit 5 extension model, have a look at this article. First, we’ll show how to create an extension that automatically creates mock… Continue Reading mockito-junit-5-extension