JUnit

Java Unit Testing

How to Apply JUnit 5

Creating a JUnit 5 build environment and applying JUnit 5 in Spring Boot

JUnit 5 Overview

Explanation of JUnit, supported JUnit versions, and JUnit structure

How to Run JUnit 5 Tests - ConsoleLauncher, Gradle

How to run JUnit 5 with ConsoleLauncher and Gradle

JUnit 5 Basic Tests - @Test, @DisplayName, @Disabled

Explanation of JUnit 5 basic tests with @Test, @DisplayName, and @Disabled

JUnit 5 Lifecycle - @BeforeAll, @BeforeEach, @AfterAll, @AfterEach

JUnit 5 lifecycle methods before and after tests

JUnit 5 Test Execution Order - Method Name, @Order, Random

How test execution order works: method-name order, @Order, and random execution

JUnit 5 Conditional Tests - @EnabledOnOs, @EnabledOnJre, @EnabledIfEnvironmentVariable

Deciding whether tests run based on OS, Java version, system properties, and environment variables

JUnit 5 Tag Filtering - @Tag

How to run only tests with selected tags

JUnit 5 Dynamic Tests - @TestFactory

How to dynamically generate test cases

JUnit 5 Repeated Tests - @RepeatedTest

How to repeatedly execute test code with @RepeatedTest

JUnit 5 Parameterized Tests - @ParameterizedTest

How to pass multiple parameters to one test method

JUnit 5 Parallel Execution

How to configure parallel test execution, class-level defaults, exclusive control, and access modes

JUnit 5 Extension Model

Explanation of several JUnit 5 extension models

JUnit 5 Meta Annotation

Explanation of JUnit 5 meta annotations

JUnit 5 Assertions

Assertion methods and a brief explanation of AssertJ

How to Test private Methods with JUnit

How to test private and protected methods with JUnit

What Is Mockito?

Mockito overview and usage examples

WebClient Testing - Testing External API Calls with MockWebServer

What MockWebServer is and how to use it