It might seem convenient to initialize our test data with production code because this approach looks like a quick and easy way for setting up different test scenarios. In fact, it's a risk that can undermine the very purpose of our testing efforts. This blog post identifies the problems we face if we initialize our test data with production code and describes how we can write robust and useful tests. Read More
Test Data
Get Rid of DbUnit Data Sets
If you are tired of writing and maintaining assertions which use XML data set files, my Introduction to AssertJ-DB course helps you to replace them with reusable assertions.
Get Started With JUnit 5
If you want to learn how to write tests with JUnit 5, my Introduction to JUnit 5 course helps you to get started and teaches you techniques which allow you to work smarter, not harder.