Testing Spring Boot Applications Demystified

60-90 minutes

Talk Overview

Spring Boot’s testing ecosystem can feel overwhelming with its numerous annotations, test slices, and configuration options. This talk cuts through the complexity by focusing on practical testing strategies that actually work in production applications.

Rather than covering every testing annotation available, we’ll focus on building a coherent testing strategy that balances speed, reliability, and maintainability. You’ll learn when to use unit tests, integration tests, and everything in between.

What You’ll Learn

This presentation provides a comprehensive guide to testing Spring Boot applications effectively:

Testing Strategy & Architecture:

  • How to structure your test suite for maximum effectiveness
  • Understanding the testing pyramid in the context of Spring Boot
  • Choosing the right testing approach for different scenarios

Spring Boot Test Slices:

  • When and how to use test slices effectively
  • Deep dive into @WebMvcTest for web layer testing
  • Using @DataJpaTest for repository layer validation

Integration Testing:

  • Setting up realistic integration tests with Testcontainers
  • Testing with real databases and external services
  • Balancing test isolation with realistic scenarios

Advanced Techniques:

  • Efficient test data management and cleanup strategies
  • Performance optimization for large test suites
  • Debugging common test failures and configuration issues

Target Audience

This talk is designed for developers who want to move beyond basic testing and build robust, maintainable test suites for their Spring Boot applications. Whether you’re new to Spring Boot testing or looking to improve your existing approach, you’ll gain practical insights you can apply immediately.

Perfect for teams that are struggling with slow tests, brittle integration tests, or unclear testing strategies.

Talk Format

This is an interactive presentation that combines theory with live coding demonstrations. We’ll work through real examples, showing both the problems and solutions. The session includes time for Q&A and can be adapted for different time slots (30-60 minutes).

Delivery History

This talk has been successfully delivered at major conferences and local meetups across Europe and the US. It consistently receives positive feedback for its practical approach and clear explanations of complex testing concepts. The content is regularly updated to reflect the latest Spring Boot features and testing best practices.

Talk Abstract

Testing Spring Boot applications doesn't have to be overwhelming. This talk demystifies Spring Boot's testing ecosystem by showing you practical strategies that work in real projects. Learn when to use different test types, how to leverage Spring Boot's test slices effectively, and discover patterns that make your tests maintainable and fast. We'll explore integration testing with TestContainers, efficient test data management, and common pitfalls to avoid.

What You'll Learn

  • Understand Spring Boot's testing landscape and when to use each approach
  • Master test slices (@WebMvcTest, @DataJpaTest, @JsonTest) for focused testing
  • Implement effective integration testing strategies with TestContainers
  • Apply test data management patterns that scale with your application
  • Avoid common testing pitfalls that lead to slow and brittle tests
  • Build a comprehensive testing strategy for your Spring Boot applications

Prerequisites

  • Basic Spring Boot knowledge
  • Java development experience
  • Familiarity with JUnit

Book This Talk

Request Speaking Engagement
We'll discuss your event requirements and customize the presentation for your audience.

Topics Covered:

Spring Boot Testing Test Slices @WebMvcTest & @DataJpaTest Integration Testing TestContainers Test Data Management MockMvc vs. WebTestClient Testing Best Practices

Target Audience:

  • Spring Boot developers
  • Java developers transitioning to Spring Boot
  • QA engineers working with Spring applications
  • Team leads seeking testing strategies

Available For:

conferences meetups corporate events workshops
Have questions?
Contact us

Ready to bring this talk to your event?

Request Speaking Engagement

Related Talks

Ship with Confidence: Spring Boot Testing for the AI Era

As AI becomes integral to modern applications, testing strategies must evolve. This talk explores …

60 minutes
Learn more →

Things I Wish I Knew When I Started Testing Spring Boot Applications

Testing Spring Boot applications can be overwhelming when you're starting out. This talk shares the …

40-60 minutes
Learn more →