Yesterday I published a list of my most popular blog posts which were published in 2013. I also promised to choose the "best" blog posts of 2013 and publish that list in my blog. Selecting my favorite blog posts was much harder than I imagined. I also realized that my personal favorites aren't necessarily my […] Read More
Integration Testing
Creating Code Coverage Reports for Unit and Integration Tests With the JaCoCo Maven Plugin
When I started using Java 7, I noticed right away that the Cobertura Maven plugin doesn’t support it. This was a huge problem to me because I used code coverage reports every day. I did some research and found the JaCoCo code coverage library. It looked interesting and I decided to give it a shot. […] Read More
What Kind of a Spring Testing Book Would You Love to Read?
As some of you know, I wrote a book about Spring Data which was published in November 2012. When that book was done, I swore that I would not write another book in the near future. However, when time passed by I started to think that I would like to write a book about my […] Read More
Spring Data JPA Tutorial: Integration Testing
My Spring Data JPA tutorial has taught us that we can create database queries and persist entities in the database by using special repository interfaces. This raises an interesting question: How can we write integration tests for our Spring Data JPA repositories because they are just interfaces? This blog post answers to that question. During […] Read More
Integration Testing of Spring MVC Applications: Write Clean Assertions with JsonPath
The previous parts of my Spring MVC Test tutorial have described how we can write integration tests for a REST API. Although the techniques described in those blog posts are useful, the problem is that our assertions were not very elegant. Our assertions were basically ensuring that the body of the HTTP response contained the […] Read More
Integration Testing of Spring MVC Applications: Migrating to Spring 3.2
When Spring Framework 3.2 was released, spring-test-mvc was officially included in this release under the name Spring MVC Test Framework. Although many things remained the same, there are some changes that might cause confusion when we are migrating our applications from Spring Framework 3.1 to 3.2. This blog entry was written to help us to […] Read More