Articles by Tag #junit

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

How to simulate real BeforeAll and AfterAll in JUnit 5

Introduction JUnit 5 is a well-known Java Testing Framework/Library across developers....

Learn More 8 1Jul 5 '24

doNothing()method example Spring Boot

When to Use doNothing()? When testing void methods that perform side effects (e.g., sending emails,...

Learn More 6 0Feb 16

verify() method in Mockito example

The verify() method in Mockito is used to confirm that specific interactions with mocked objects...

Learn More 6 0Jan 12

thenThrow() method in Mockito example

Scenario: Mocking a Service to Throw an Exception for Testing Error Handling in a Controller 1....

Learn More 6 0Feb 1

any() method in Mockito Spring Boot example

The any() method in Mockito is used as a matcher to specify that any value of a given type can be...

Learn More 5 0Feb 23

thenReturn() method in Mockito example

Scenario: Mocking a Service to Test a Controller Application Code Employee.java package...

Learn More 5 0Jan 26

Important Notes on JUnit 5.12.0+ in Gradle

TL;DR When upgrading to JUnit 5.12.0 or later, be sure to...

Learn More 1 0Mar 15

Automação de Testes com Kotlin, JUnit e Gradle

Sumário 1. Introdução 2. Tecnologias e Ferramentas 3. Instalando o JDK e o Gradle     3.1....

Learn More 1 0Mar 19

What is JUnit and How its Open Source Model Drives Software Innovation

Abstract: This post explores the evolution of JUnit, a cornerstone Java testing framework, and its...

Learn More 0 0May 10

Exploring JUnit: A Model of Community, Innovation, and Sustainable Funding

JUnit has long been the backbone of Java unit testing, but its influence extends far beyond a simple...

Learn More 0 0Mar 6

Uses of @spy annotation in junit testing

The @Spy annotation in JUnit, particularly when used with Mockito, is applied to create a spy on an...

Learn More 0 0Aug 12 '24