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

Docker for Java Developers‚óŹ4 Min. 56 Sec.

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 login or buy this course in order to use watchlist, email functionality or track progress.

This lesson is not available in preview.

You need to buy this course to watch it. You can always try the free preview episode, too.

Buy This Course or Free Preview