Testcontainers with Java
Learn how to test Java DAOs with Testcontainers and Docker. Run fast, isolated tests against real Postgres databases—no mocks, just clean, repeatable environments.
- of video
- 1.3 h
- lectures
- 22
- sections
- 6
$99.97one payment
Lifetime access. 15-day money-back guarantee.
Want a mentor as well? The Academy gives you every course on Amigoscode plus code reviews, daily live calls and interview prep, for $129/month. Compare →
What you'll learn
By the end of this course
- What is Testcontainers: Understand the fundamentals of Testcontainers and its purpose in Java testing.
- How Testcontainers Work: Explore the core mechanics and architecture of Testcontainers.
- Setting Up the Project: Learn to clone the repo and get the app up and running locally with Docker.
- Writing Container-Based Tests: Create JUnit tests using containerized environments.
- Database Migrations with Flyway: Integrate Flyway into your container setup for schema versioning.
- Inspecting and Customizing Containers: Learn to inspect logs, lifecycle events, and tweak containers for your needs.
- End-to-End API Testing: Run tests that hit actual PostgreSQL instances for maximum reliability.
- Shared Database Containers: Understand how to reuse containers for faster test execution.
- Best Practices for Integration Testing: Discover what to test, what to mock, and how to structure your tests.
- Running and Organizing Tests: Learn to group and automate test execution for robust pipelines.
Curriculum
6 sections, 22 lectures
1.3 h of video. Open any section to see its lectures.
1Intro1 lecture · 1 min
- 1Recommended CoursesFree preview
2Getting started4 lectures · 16 min
- 1What Is TestcontainersFree preview3 min
- 2How Testcontainers WorksFree preview4 min
- 3Cloning RepoFree preview2 min
- 4Get App Up And Running6 min
3Testcontainers in action5 lectures · 22 min
- 1Create Test5 min
- 2Container4 min
- 3Flyway4 min
- 4Inspecting Container4 min
- 5Customize Container6 min
4Testing5 lectures · 25 min
- 1Get All Products9 min
- 2What To Test4 min
- 3Custom Query1 min
- 4Exercise Solution7 min
- 5Running All Tests3 min
5Shared databases3 lectures · 12 min
- 1Shared Postgres Container6 min
- 2Flyway2 min
- 3Testing Changes4 min
6Outro4 lectures · 3 min
- 1Other Modules3 min
- 2Quiz
- 3Next Course
- 4Feedback
Choose how you learn
Learn on your own, or with people who check your work
The course is yours to keep. The Academy is this course and every other one, plus the people who get you hired.
Testcontainers with Java
The course, on your own
$99.97one payment
- 22 lectures, 1.3 h of video
- Source code for everything you build
- Subtitles on every video
- 6 months of IntelliJ IDEA Ultimate
- Lifetime access to the course and its updates
15-day money-back guarantee
The Academy
The courses, plus the people
$129/monthcancel anytime
This course, plus
- Every course on Amigoscode 50+ in the Zero to Hired Roadmap
- Daily live calls and 1:1 instructor time
- Code reviews and pair programming on what you build
- Interview prep mock interviews, System Design Lab, CV and LinkedIn review
- Land an interview in 90 days or we coach you 1:1 free until you do.
7-day money-back guarantee · Secure checkout on Skool
“Nelson was teaching 90% of my job. I was already implementing everything I learnt from it.”
“I was a totally different person. More confident as a developer, more prepared for my job.”
GabrielaSoftware Engineer at Mercado Livre“I studied biomedicine and psychology. I found Nelson's Java tutorials while looking for a course for my brother. I was hooked and now here I am, a software engineer at IKEA.”
NajmaSoftware Engineer at IKEAAbout this course
Who is this course for?
Level: All (Junior, Mid and Senior Engineers). Watch the free preview lectures in the curriculum to see if it's right for you.
How long will it take?
There is about 1 hour of video. Most people finish in a week at 5 hours a week, plus the time you spend building along.
Do I keep access?
Yes. You pay once and keep the course for life, including updates.
What if it isn't for me?
Email us within 15 days of buying and we'll refund you in full.
Should I buy the course or join the Academy?
Buy the course if you only want this topic and you learn well on your own. Join the Academy if you want to get hired or move up: you get every course on Amigoscode, this one included, plus daily live calls, code reviews and interview prep, for $129/month. The course is $99.97 once.