Skip to content

PragmaTech-GmbH/testing-spring-boot-applications-demystified-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

84 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Testing Spring Boot Applications Demystified Workshop

Open in GitHub Codespaces

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.

Workshop Overview

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

Workshop Format

  • 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)

GitHub Codespaces

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:

  1. Click on the "Code" button on the GitHub repository
  2. Select the "Codespaces" tab
  3. Click "Create codespace on main" and select at least 4 cores (120 hours are free per month)
  4. 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.

Lab Structure

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

Prerequisites

  • Java 21 (or later)
  • Maven 3.9+ (wrapper included)
  • Docker (for Testcontainers)
  • Your favorite IDE (IntelliJ IDEA, Eclipse, VS Code, Eclipse, NetBeans, etc.)

Getting Started

  1. Clone this repository:
git clone https://github.com/PragmaTech-GmbH/testing-spring-boot-applications-demystified-workshop.git
  1. Import the projects into your IDE of choice.

  2. Run all builds with:

./mvnw verify

Additional Resources

Contact

Contact us to enroll your team in this workshop.

On-Demand Online Course

Explore our Testing Spring Boot Applications Masterclass for the on-demand version of this workshop.

License

This project is licensed under the MIT License - see the LICENSE file for details.