Get Rid Of XML Data Set Files

If you are tired of writing and maintaining assertions which use XML data set files, you have come to the right place. The Introduction to AssertJ-DB course describes how you can replace XML data set files with reusable assertions. In other words, this course helps you to write tests which are easy read, write, and maintain.

Why AssertJ-DB?

AssertJ-DB is an AssertJ module that allows you to write assertions for the data that’s found from a relational database. It has some great benefits which makes it a better choice than DbUnit. These benefits are:

Get Rid Of XML Data Set Files

It’s quite common that XML data set files contain duplicate metadata and duplicate test data. That’s why tests which use external data set files are typically hard to maintain. If you use AssertJ-DB, you don’t have suffer from this problem because you can write your assertions with Java.

Shorten Your Feedback Loop

If your test has multiple assertions and one of them fails, you might not have all the information you need because it’s possible that some of your assertions weren’t run. If you write your assertions with AssertJ-DB, you can solve this problem by writing soft assertions.

Eliminate Duplicate Assertions

If you have to write the same assertion multiple times, you can eliminate duplicate boilerplate code by putting it to one place. As an additional bonus, these custom assertion methods help you to emphasize the business rules of your application.

Why Should You Learn From Me?

My name is Petri Kainulainen and I have used DbUnit for over 10 years. I have written thousands of integration tests which use XML data set files and I have never been completely satisfied with these tests. Nevertheless, I had to use DbUnit because I had no other choice, or so I thought.

A couple of years ago I found AssertJ-DB and I have never looked back. AssertJ-DB has proven to me that it’s possible to get rid of duplicate assertions which make my tests hard to maintain, and write assertions which are easy to read and which keep my feedback loop as short as possible.

Finally, because I don’t have to write any XML, writing assertions is fun again.

If you bought the Intermediate or Master package of my Test With Spring course, I will give you free access to this course. If you want to redeem this benefit, take a look at the FAQ.

If you aren’t living in the European Union, I cannot sell this course to you. I simply don’t have the time or money to ensure that I am not breaking any tax laws, which, by the way, are literally changing all the time. If you want to buy this course and you aren’t living in the European Union, drop me an email. If I get enough emails, I will check if there is something I can do to fix this problem.

Introduction to AssertJ-DB Course

The Introduction to AssertJ-DB course is a text-based course that has 6 lessons, 17 exercises, and 2 quizzes. This is an opinionated course and I will cover only the features which I have found useful when I have written assertions with AssertJ-DB.

The teaching method which I use in this course has three cornerstones:

  • Every lesson of this course has practical learning goals and the lesson describes how you can achieve these goals. For example, a lesson might describe how you can configure AssertJ-DB.
  • I believe that the easiest way to learn new things is to do them yourself. That’s why all lessons of this course have hands-on exercises. These exercises will help you to understand how you can use your new skills in your daily work.
  • The quizzes of this course make sure that you have learned the required skills.

Here Is What You Get

This course is divided into two topics:

Getting Started With AssertJ-DB
2 lessons, 3 exercises, and 1 quiz.

This topic describes how you can get started with AssertJ-DB and manage your test data in a way that helps you to write tests which are easy to write and maintain. After you have finished this topic, you:

  • Understand why you should use AssertJ-DB.
  • Can get the required dependencies with Maven and Gradle.
  • Know how you can configure AssertJ-DB.
  • Understand how you can create constant classes which help you to write tests which are easy to write and maintain
Writing Assertions With AssertJ-DB
4 lessons, 14 exercises, and 1 quiz.

This topic describes how you can get rid of DbUnit XML data set files and write reusable assertions for the data that’s found from a relational database. After you have finished this topic, you:

  • Understand what kind of assertions you should write.
  • Can write assertions with AssertJ-DB.
  • Know how you can shorten your feedback loop by writing soft assertions.
  • Understand how you can get rid of duplicate boilerplate code by writing custom assertions.

14-Day Unconditional Money Back Guarantee

I have put a lot of work into this course and I am confident that it will be useful to you. That’s why I am offering a 14-day unconditional money back guarantee. If this course doesn’t help you save your time, just contact support within 14 days of your purchase and you will get your money back. No questions asked.

Get Started Today

Unfortunately I cannot sell this course at the moment because I have to figure out a new way to handle my VAT obligations to the European Union.

Frequently Asked Questions

Take a look at the FAQ page