A full-day workshop to help developers become more confident and productive when implementing automated tests for Spring Boot applications.
Proudly presented by PragmaTech GmbH.
This workshop is designed to demystify testing in Spring Boot applications through hands-on exercises, covering everything from basic unit testing to advanced integration testing techniques. The workshop is divided into four lab sessions, each focusing on different aspects of testing Spring Boot applications.
- Lab 1: Introduction & Unit Testing
- Lab 2: Sliced Testing
- Lab 3: Integration Testing
- Lab 4: Pitfalls, Best Practices, and AI
- Full-day workshop on-site or remote
- Four main labs, ranging from 70-110 minutes each
- Hands-on exercises with provided solutions
- Building on a consistent domain model (a library management system)
This repository is configured for use with GitHub Codespaces, which provides a complete, ready-to-use development environment in the cloud. To use GitHub Codespaces:
- Click on the "Code" button on the GitHub repository
- Select the "Codespaces" tab
- Click "Create codespace on main" and select at least 4 cores (120 hours are free per month)
- Wait for the codespace to start and setup to complete
The codespace includes:
- Java 21
- Maven
- Docker (for Testcontainers)
- VS Code with Spring Boot extensions
For more information, see the Codespaces documentation.
See the content of the labs folder for the content per lab.
Each lab (lab-1
through lab-4
) includes:
- Exercise files with instructions and TODO comments
- Solution files that show the complete implementation
- Supporting code and configurations
- Java 21 (or later)
- Maven 3.9+ (wrapper included)
- Docker (for Testcontainers)
- Your favorite IDE (IntelliJ IDEA, Eclipse, VS Code, Eclipse, NetBeans, etc.)
- Clone this repository:
git clone https://github.com/PragmaTech-GmbH/testing-spring-boot-applications-demystified-workshop.git
-
Import the projects into your IDE of choice.
-
Run all builds with:
./mvnw verify
- Spring Boot Testing Documentation
- Spring Test Documentation
- JUnit 5 User Guide
- Mockito Documentation
- Testcontainers Documentation
- WireMock Documentation
Contact us to enroll your team in this workshop.
Explore our Testing Spring Boot Applications Masterclass for the on-demand version of this workshop.
This project is licensed under the MIT License - see the LICENSE file for details.