Test-Driven Development in Java
Gain insights into test-driven development and hexagonal architecture. Learn about uncovering design flaws, using SOLID principles, and integrating domain logic with databases and web layers for defect-free code.
Join 3.1 million developers at
What You'll Learn
- An understanding of the need for automated testing and test-driven development (TDD)
- The ability to write well-engineered and well-tested code
- Working knowledge of TDD techniques such as SOLID principles, hexagonal architecture, and test doubles
- Hands-on experience writing integration tests to test-drive the database and API implementation for a sample application
Learning Roadmap
2.
Building the Case for TDD
Building the Case for TDD
3.
Using TDD to Create Good Code
Using TDD to Create Good Code
6 Lessons
6 Lessons
4.
Dispelling Common Myths about TDD
Dispelling Common Myths about TDD
8 Lessons
8 Lessons
5.
Building an Application Using TDD
Building an Application Using TDD
4 Lessons
4 Lessons
6.
Writing Our First Test
Writing Our First Test
12 Lessons
12 Lessons
7.
Following the Rhythms of TDD
Following the Rhythms of TDD
9 Lessons
9 Lessons
8.
Driving Design—TDD and SOLID
Driving Design—TDD and SOLID
12 Lessons
12 Lessons
9.
Test Doubles—Stubs and Mocks
Test Doubles—Stubs and Mocks
13 Lessons
13 Lessons
10.
Hexagonal Architecture—Decoupling External Systems
Hexagonal Architecture—Decoupling External Systems
10 Lessons
10 Lessons
11.
FIRST Tests and the Test Pyramid
FIRST Tests and the Test Pyramid
8 Lessons
8 Lessons
12.
Exploring TDD with Quality Assurance
Exploring TDD with Quality Assurance
7 Lessons
7 Lessons
13.
Test First, Test Later, Test Never
Test First, Test Later, Test Never
7 Lessons
7 Lessons
14.
Driving the Domain Layer
Driving the Domain Layer
12 Lessons
12 Lessons
15.
Driving the Database Layer
Driving the Database Layer
5 Lessons
5 Lessons
16.
Driving the Web Layer
Driving the Web Layer
9 Lessons
9 Lessons
Packt
A tech learning platform that provides online courses, eBooks, videos, and other resources to help individuals and organizations stay ahead of emerging and popular technologies.
Trusted by 3.1 million developers working at companies
Anthony Walker
@_webarchitect_
Evan Dunbar
ML Engineer
Software Developer
Carlos Matias La Borde
Souvik Kundu
Front-end Developer
Vinay Krishnaiah
Software Developer
Built for 10x Developers












Free Resources