Modern Testing in Java: JUnit 5, Mockito & Testcontainers Workshop
Slow, flaky, or tightly-coupled test suites turn every deployment into a gamble. Equip your engineering team with battle-tested patterns for JUnit 5, Mockito, Testcontainers, and Microservice Testing so your pipeline stays fast, deterministic, and effortless to maintain.
Why Engineering Teams Book This Testing Workshop
Refactor Brittle Legacy Tests Into Clean Specifications
When a 1-hour feature takes all day because impenetrable unit tests fail in CI, velocity grinds to a halt. Your team learns how to diagnose test smells using my 12-Step Test Quality Audit, eliminate redundant setup state, and write tests that survive refactoring.
Know Exactly When to Mock vs. Spin Up Testcontainers
Over-mocking hides SQL and serialization bugs; testing everything end-to-end makes builds take 45 minutes. We cover the practical balance between fast Mockito unit tests, contract tests, and parallelized Testcontainers integration suites.
Full-Day Hands-On Curriculum (09:00 – 17:00)
Hands-on labs focus on refactoring realistic, messy enterprise test suites into fast, expressive, and maintainable JUnit 5 + Mockito + Testcontainers pipelines.
1. Advanced JUnit 5 & Maintainable Test Architecture
- The 12-Step Test Quality Audit: independence, speed & zero duplication
- Structuring complex state cleanly with
@Nestedclasses vs. bloated@BeforeEach - Data-driven testing with
@ParameterizedTestand dynamic@TestFactorysuites - Building custom JUnit 5 extensions and conditional execution rules
- Hands-On Lab: Refactoring a slow, brittle legacy test suite into clean JUnit 5
2. Deep-Dive Mockito & Test Doubles
- Choosing between Mocks, Stubs, Spies, and Fakes
- Strictness levels, argument captors, verification modes & BDDMockito
- Mocking final classes, static methods, and constructors safely with Mockito's inline mock maker
- Hands-On Lab:Untangling complex dependency graphs without brittle over-mocking
3. Microservice & API Testing Strategies
- Designing a practical testing pyramid/trophy for Spring Boot & Jakarta EE microservices
- API & slice testing for REST controllers, validation, and error handling
- Consumer-driven contract testing with Spring Cloud Contract
- Hands-On Lab: Testing a microservice boundary end-to-end
4. Integration Testing with Testcontainers & Parallel Execution
- Spinning up real PostgreSQL/MySQL databases, Kafka brokers, and custom Docker containers with Testcontainers
- Reusing containers across test runs so integration suites stay blazingly fast
- Configuring parallel test execution in JUnit 5 without shared-state race conditions
- Hands-On Lab: Building a fast, parallelized Testcontainers integration suite
What Conference Workshop Attendees Say
"The workshop was incredibly detailed and packed with practical content. Every minute was valuable."
— Senior Java Developer · Conference Hands-On Workshop (JFokus / JNation)"One of the most content-rich workshops I've attended at a conference. Great attention to technical details while keeping the content accessible."
— Staff Software Engineer · Sold-Out Conference Lab (JPrime / J-Fall)Calculate Your Team's Workshop Investment & Book a Discovery Call
Full-day workshops start at €2,500 (excl. VAT) for up to 5 developers, plus €300 per additional developer (up to 15 per session). Includes pre-workshop codebase alignment, full-day hands-on training, lifetime lab repository access, and a 2-week follow-up Q&A session.
1-Click "Convince Your Engineering Manager" Template
Copy and paste this message into Slack or email to get fast training budget approval from your Engineering Manager, Tech Lead, or CTO:
Frequently Asked Questions
What is the ideal team size for a workshop? Optimal group size is 5–15 developers to ensure personal attention and effective hands-on practice. The sweet spot is 8–10 developers for pair programming and refactoring exercises. Larger engineering organizations can book multiple sessions.
Where are the workshops conducted? Workshops are delivered live and in-person at your company's office across Europe and worldwide.
What is the investment for a workshop? Full-day workshops start at €2,500 (excl. VAT) for teams of up to 5 developers, plus €300 per additional developer (up to 15 participants per session). Multiple-workshop discounts are available.
Can the workshop be customized to our tech stack? Yes. Every engagement starts with a pre-workshop technical discovery call to align the testing exercises with your frameworks (Spring Boot, Jakarta EE, Helidon, Quarkus), databases, and CI/CD setup.
What happens after the workshop? Participants receive lifetime access to all workshop repositories and updated materials, plus a dedicated follow-up Q&A session within 2 weeks after the training.
What is the typical workshop schedule? The full-day workshop runs from 09:00 to 17:00 (with flexible timing to fit your team):
- 09:00 – 12:30: Morning interactive deep dives & hands-on labs
- 12:30 – 13:30: Lunch break
- 13:30 – 17:00: Afternoon advanced production labs & architectural Q&A