Upgrade to Pro — share decks privately, control downloads, hide ads and more …

[dev2next] - Test-Driven Development: It's easi...

[dev2next] - Test-Driven Development: It's easier than you think!

Everyone loves writing tests, don’t they? How do you write good tests? What tools are available for you to write good tests?

In this session, I will dive into the many features of Quarkus that help developers write good tests. I will highlight some of the features of Quarkus, Dev Services and Continuous Testing, which help make testing easier. Additionally, I will live code some tests for common use cases developers encounter, including unit, integration, and “black box” testing of imperative and reactive RESTful and event-driven applications that use common services, such as databases and Kafka brokers. I will discuss techniques such as mocking, spying, and interaction-based testing/verification.

I'll even spend some time showing how IDE-based AI assistants can help!

Once you see how easy TDD really can be there isn't a reason to not do it!

Avatar for Eric Deandrea

Eric Deandrea PRO

September 30, 2025
Tweet

More Decks by Eric Deandrea

Other Decks in Technology

Transcript

  1. @edeandrea Who am I? ▸ Java Champion ▸ 26+ years

    software development experience ▸ Contributor to Open Source projects ・ Quarkus ・ LangChain4j & Quarkus LangChain4j ・ Spring Boot, Spring Framework, Spring Security ・ Wiremock ・ Microcks ▸ Boston Java Users ACM Chapter Vice Chair & Board Member ▸ Published Author
  2. @edeandrea • Showcase & explain Quarkus, how it enables modern

    Java development & the Kubernetes-native experience • Introduce familiar Spring concepts, constructs, & conventions and how they map to Quarkus • Equivalent code examples between Quarkus and Spring as well as emphasis on testing patterns & practices https://red.ht/quarkus-spring-devs
  3. @edeandrea end-to-end tests unit tests integration tests low effort high

    realism tests with application server test REST endpoints tests with a database