I have been planning to write a Spring testing book for some time now. About a month ago I tried to create a table of contents for the book. I failed miserably. The problem was that although I know what should be in the book, I found it hard to write my thoughts down. I […] Read more
Integration Testing
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
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
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
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
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