Member-only story

First of all, Integration Testing is a very broad topic, simply because what constitutes Integration Testing is always up for debate. There doesn’t seem to be an agreement over what is considered as specifically Integration Testing.
To put in more simpler words, there is not one true formal definite definition of an Integration Test.
Integration Test is actually a very broad category of different types of tests. For example, in my earlier blog post:
I reference the hierarchy of tests and listed end-to-end test at the top of the pyramid. End to End Test is in fact, also a type of Integration Test. It is a more specific kind of Integration Test realistically.
Also, in another of my earlier post in:
I showcase how to write an Integration Test with doing Integration Test using an in-memory DB. That is just one type of Integration Test. An Integration Test with a framework is another.
Spring — The de-facto Framework for application development in Java
Most people use Spring in this day in age. It is so popular, be it the traditional Spring Framework or nowadays — Spring Boot.
In this post, i am going to cover how to do Integration Testing with Spring. As mentioned previously, it all depends on what you are ‘integrating’. Here, we are integrating with the framework itself.
So more specifically, I am going to show how to write up an Integration Test that verifies the integration of your application with the Spring framework.
With such a test in place, you can easily verify your application infrastructure’s correctness with Spring. For instance, if in the future you decide to upgrade to…