Test-Driven Development: It's easier than you think!
summary
A demo builds a small Java 21 Quarkus app (REST + JPA + Hibernate + PostgreSQL) using Quarkus Dev Services to auto-start a Postgres container and Continuous Testing to rerun only affected tests; repository and resource layers get unit and integration coverage with Mockito, AssertJ and REST-assured. Tests start failing, code is implemented until they pass, and an AI-assisted scaffolding step produces a working resource class from incomplete test stubs. Kafka is sketched but omitted for time; the demo compiles and tests turn green.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 3:48TDD from scratch
- 9:00Practical TDD approach
- 14:12Repository layer tests
- 23:31REST endpoint TDD
- 27:04Q&A testing frameworks
- 30:00Closing remarks
related talks
55mTest Driven Development It’s Easier Than You Think
48mIntegration Testing with Quarkus.
47mProd like Integration Testing for Cloud Native Microservices
34mWrite tests that spark flow
26mStreamlining Cloud-Native Development: Simplifying Dependencies and Testing with Microcks
48mTestcontainers and Spring Boot from integration tests to local development!
46mSupersonic Subatomic Mocking: How to test your Quarkus app
56mWrite Tests That Spark Flow
