Tagged articles
JUnit 5
13 articles · Page 1 of 1
This article details ten deprecated Spring Boot patterns — from field injection and @Value overuse to WebSecurityConfigurerAdapter and RestTemplate — and shows the recommended modern alternatives for Spring Boot 3.x and 4.x migrations.
ConfigurationPropertiesJUnit 5Jakarta EE
0 likes · 11 min read

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

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

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

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

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

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.
AnnotationsJUnit 5Java
0 likes · 8 min read

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

Spring Boot 2.4.0 has been officially released with full Java 15 support, layered JARs, Docker/Buildpack image building, JUnit 5 adoption, enhanced configuration handling, new startup endpoints, and numerous core dependency upgrades, marking a major step toward cloud‑native applications.
DockerJUnit 5Java
0 likes · 5 min read


ITPUBMar 13, 2020 · Backend Development
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

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

This tutorial explains how to prepare a Java development environment, create a Gradle project, configure JUnit 5 and Selenium Jupiter, write a basic Selenium WebDriver test, and run the test using Gradle Wrapper, providing all required tools and code examples.
GradleJUnit 5Java
0 likes · 7 min read

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
