Instantiating TestContainers only once across all tests - 'Singleton Pattern'

Docker for Java Developers4 Min. 56 Sec. Published On March 08, 2019

What is this episode about?

We continue right where we left off in the last episode. There you learned how to create new MySQL databases, for every test method run.

Usually though, that's not what you want. You'd like a fresh and empty database for all of your test classes/test suite.

Learn how to do this in this episode, with the help of the infamous 'Singleton Pattern'.

You need to signup to a paid plan in order to use watchlist, email functionality or track progress.

This video requires a marcobehler.com membership.

Get a free account and enjoy all free episodes - or - try a free 7 day trial of any paid plan to get access to all free and premium episodes, as well as source code.

Sign Up Now or Login

Share

Discussion