Member-only story
Spring Boot 3 — Unit Testing project Architecture with ArchUnit
In this story, we’ll explore the power of ArchUnit in the Spring Boot application.
· Prerequisites
· Overview
∘ What is ArchUnit?
∘ Why use ArchUnit?
· Let’s get to the code
∘ Project Architecture
∘ Add ArchUnit Dependency
∘ ArchUnit Rules Examples
∘ Run the Tests
· Conclusion
· References
Prerequisites
This is the list of all the prerequisites:
- Spring Boot 3+
- Maven 3.6.3
- Java 21
- Basic knowledge with Junit 5
Overview
When building software, it’s common for development teams to define a set of guidelines and code conventions considered best practices.
These practices are generally documented and communicated to the entire development team that has accepted them. However, during development, developers can violate these guidelines discovered during code reviews or with code quality checking tools.