Tagged articles

JUnit 5

13 articles · Page 1 of 1
CodeSmart Hoops
CodeSmart Hoops
Jul 21, 2026 · Backend Development

Hands‑On Unit Tests for Spring Boot Auto‑Configuration (Full Deep Dive)

This article provides a step‑by‑step guide to testing Spring Boot 3.x auto‑configuration with JUnit 5 and ApplicationContextRunner, covering SpringFactoriesLoader loading, conditional annotation filtering, user‑defined bean overrides, exclusion mechanisms, and the new .imports file format, plus Maven and IDE run instructions.

ApplicationContextRunnerAuto-configurationConditionalOnMissingBean
0 likes · 13 min read
Hands‑On Unit Tests for Spring Boot Auto‑Configuration (Full Deep Dive)
Xiaolin Talks Programming
Xiaolin Talks Programming
Jul 1, 2026 · Backend Development

High-Fidelity Integration Testing: Spring Boot & Testcontainers in Production Pipelines

This article shares practical experience migrating Spring Boot integration tests to Testcontainers, covering database migration with Flyway, test data factories, multi-container networking, performance optimization via container reuse and parallel execution, CI pipeline integration, and team conventions for test layering and mutation testing.

CI/CDDatabase TestingDocker
0 likes · 19 min read
High-Fidelity Integration Testing: Spring Boot & Testcontainers in Production Pipelines
CodeSmart Hoops
CodeSmart Hoops
Jun 17, 2026 · Backend Development

Hands‑On Unit Testing of MyBatis‑Plus with Spring Boot 3

This guide demonstrates how to set up a Spring Boot 3.x project with MyBatis‑Plus, configure Maven dependencies, H2 database, and JPA, then write comprehensive JUnit 5 tests covering CRUD, LambdaQueryWrapper queries, pagination, logical deletion, and automatic timestamp filling, with step‑by‑step commands to run the tests.

JUnit 5JavaMyBatis-Plus
0 likes · 20 min read
Hands‑On Unit Testing of MyBatis‑Plus with Spring Boot 3
CodeSmart Hoops
CodeSmart Hoops
Jun 8, 2026 · Backend Development

Hands‑On Unit Tests for a Complete MyBatis Integration with Spring Boot 3

This guide walks through a full MyBatis unit‑testing suite built on Spring Boot 3.x and JDK 17+, showing how to configure Maven dependencies, set up an H2 datasource, write POJOs, define mapper interfaces and XML, and verify features such as mapper proxies, parameter binding, dynamic SQL, resultMap mapping, camel‑case conversion and first‑level caching with JUnit 5.

Dynamic SQLJUnit 5MyBatis
0 likes · 25 min read
Hands‑On Unit Tests for a Complete MyBatis Integration with Spring Boot 3
CodeSmart Hoops
CodeSmart Hoops
May 18, 2026 · Backend Development

Unit Testing Spring Transaction Propagation: Practical Insights

This article provides a complete, runnable unit‑test suite for Spring Boot 3.x that demonstrates and verifies every transaction‑propagation behavior (REQUIRED, REQUIRES_NEW, NESTED, SUPPORTS, MANDATORY), highlights common pitfalls such as self‑calls and swallowed exceptions, and shows how to configure the environment, write the test code, and run the tests.

H2 DatabaseJUnit 5Spring Boot
0 likes · 15 min read
Unit Testing Spring Transaction Propagation: Practical Insights
Woodpecker Software Testing
Woodpecker Software Testing
Dec 28, 2025 · Fundamentals

Mastering JUnit 5: The Modern Java Unit‑Testing Framework

JUnit 5 introduces a modular architecture with Platform, Jupiter, and Vintage, adds a fresh annotation model, dynamic and parameterized tests, tagging, exception assertions, and nested tests, and offers clear advantages over JUnit 4, as demonstrated through a complete Calculator example and Maven execution.

JUnit 5JavaMaven
0 likes · 8 min read
Mastering JUnit 5: The Modern Java Unit‑Testing Framework
Programmer DD
Programmer DD
Apr 5, 2022 · Backend Development

What’s New in IntelliJ IDEA 2022.1 Beta 2 for Java Developers?

IntelliJ IDEA 2022.1 Beta 2 introduces Java 18 support, new @snippet Javadoc tags, enhanced switch pattern‑matching, updated JUnit 5 annotations, and editor inspections that alert developers to formatting mismatches, helping Java developers stay up‑to‑date with the latest language and tooling features.

IDE updatesIntelliJ IDEAJUnit 5
0 likes · 4 min read
What’s New in IntelliJ IDEA 2022.1 Beta 2 for Java Developers?
ITPUB
ITPUB
Mar 13, 2020 · Backend Development

Step‑by‑Step Migration from JUnit 4 to JUnit 5 in a Spring Boot Project

This tutorial guides you through creating a basic Spring Boot calculator app, adding JUnit 4 tests, then fully migrating the project to JUnit 5 by updating dependencies, rewriting test annotations, and leveraging new JUnit 5 features such as @ExtendWith and @DisplayName.

JUnit 4JUnit 5Maven
0 likes · 17 min read
Step‑by‑Step Migration from JUnit 4 to JUnit 5 in a Spring Boot Project
FunTester
FunTester
Jan 15, 2020 · Fundamentals

Speed Up Selenium Tests with JUnit 5 Parallel Execution and Advanced Features

This tutorial shows how to accelerate Selenium‑based test suites by using JUnit 5’s parallel execution, custom test ordering, a single‑browser session, configurable driver settings, parameterized tests with CSV sources, and richer assertions via AssertJ, complete with Gradle commands and code examples.

AssertJJUnit 5Java Testing
0 likes · 11 min read
Speed Up Selenium Tests with JUnit 5 Parallel Execution and Advanced Features
Programmer DD
Programmer DD
Sep 25, 2019 · Fundamentals

Master JUnit 5: Essential Guide to Java Unit Testing with Real Code Examples

This article introduces JUnit 5, explains its architecture and key features, and provides step‑by‑step examples of writing, configuring, and running unit tests in Java, covering annotations, lifecycle methods, disabled tests, nested tests, repeated tests, assertions, timeout checks, exception handling, and parameterized testing.

JUnitJUnit 5Java unit testing
0 likes · 17 min read
Master JUnit 5: Essential Guide to Java Unit Testing with Real Code Examples