Spring Boot integration testing with Testcontainers starter project
This blog post demonstrates springboot integration testing with Testcontainers library using starter project
This blog post demonstrates springboot integration testing with Testcontainers library using starter project
Springboot provides excellent support for unit testing and integration testing. I have covered how to do unit testing for Springboot controllers in various ways in one of my previous articles. While doing unit testing we try to test a single method while mocking all the dependencies. While doing integration testing we see that interaction between…
The purpose of logging is to provide information about what is happening in the system, which requires including information about the objects being manipulated. In this blog post I will show you how can we achieve lazy logging with log4j 2.x framework. In Log4j 1.x this could be accomplished by doing The Problem with the…
In Java 1.5 the static method import concept was introduced.Before that whenever we are using static method we used to invoke static method on class name like Integer.parseInt(“1”). But by using static method import we can directly call parseInt(“1”) method in our code. For this to work we need to import like below. In general…