Tagged articles
6 articles
Page 1 of 1
Huolala Tech
Huolala Tech
Nov 16, 2023 · Fundamentals

Why Unit Testing Matters and How to Master It in Java Projects

This article explains what unit testing is, why it is essential for software quality, outlines its benefits such as early bug detection and design improvement, and provides practical guidance on writing effective Java unit tests using JUnit5, Mockito, and JaCoCo, along with CI integration and best‑practice principles.

JUnit5JaCoCoJava
0 likes · 28 min read
Why Unit Testing Matters and How to Master It in Java Projects
Alibaba Cloud Developer
Alibaba Cloud Developer
Feb 14, 2022 · Backend Development

Boost Java Unit Testing with JUnit5, Mockito, and Auto‑Generated Code

This article examines common unit‑testing problems in Java projects, analyzes their root causes such as development and maintenance costs, and presents practical solutions including choosing JUnit5, leveraging Mockito, using in‑memory databases, and employing a custom IntelliJ plugin to automatically generate test code and test data.

Code GenerationJUnit5Java
0 likes · 18 min read
Boost Java Unit Testing with JUnit5, Mockito, and Auto‑Generated Code
Programmer DD
Programmer DD
Sep 6, 2021 · Fundamentals

Master JUnit5: Why Upgrade from JUnit4 and How to Use Its Powerful Features

This article explains why developers should switch from JUnit4 to JUnit5, outlines the JUnit5 architecture, shows how to add the proper Maven dependency, and provides practical examples of common annotations, assertions, repeated, parameterized, and nested tests for Spring Boot projects.

JUnit5JavaSpring Boot
0 likes · 7 min read
Master JUnit5: Why Upgrade from JUnit4 and How to Use Its Powerful Features
FunTester
FunTester
Feb 10, 2020 · Backend Development

Migrating to Spock 2.0 M1 with JUnit 5 – Gradle & Maven Setup Guide

This article explains the major changes in Spock 2.0 M1, how to integrate it with JUnit 5 via the JUnit Platform, provides step‑by‑step Gradle and Maven configurations, discusses compatibility issues with Groovy versions, and offers solutions for JUnit 4 Rule migration.

GradleJUnit5Java Testing
0 likes · 6 min read
Migrating to Spock 2.0 M1 with JUnit 5 – Gradle & Maven Setup Guide
FunTester
FunTester
Jan 14, 2020 · Fundamentals

Master Selenium PageFactory: Build Robust Page Objects for Test Automation

This tutorial explains how to use Selenium's built‑in PageFactory to implement the Page Object pattern, defines a TodoMVC API, provides JUnit 5 test examples, shows a concrete Page implementation with @FindBy annotations, discusses additional locator annotations, element lookup timing, and demonstrates running the tests from the command line.

JUnit5JavaPage Object
0 likes · 11 min read
Master Selenium PageFactory: Build Robust Page Objects for Test Automation