Unit Testing

Why I Write Tests?

I write software which is used to manage sensitive information. It doesn't really matter what kind of information my software deals with. The only things that matters are Only authorized persons can access that information. The information must be correct at all times. Also, often the first requirement is a lot more important than the […] Read more

My Favorite Blog Posts of 2013

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

Adding Social Sign In to a Spring MVC Web Application: Unit Testing

Spring Social 1.0 has a spring-social-test module which provides support for testing Connect implementations and API bindings. This module was removed from Spring Social 1.1.0, and it was replaced with the Spring MVC Test framework. The problem is that there is practically no information about writing unit tests for an application which uses Spring Social […] Read more

Turning Assertions Into a Domain-Specific Language

Assertions are an essential part of our unit tests. And yet, it so easy to neglect them. That is a shame because if we overlook the importance of assertions, the assert section of our tests becomes long and messy. Sadly, most tests which I have seen (and written) suffer from this problem. This blog post […] Read more

What I Learned This Week (Week 42/2013)

Each week I write a blog post which describes what I learned that week. I write these blog posts for two reasons. First, I want to keep track of my personal development and writing regular blog posts is a great way to do it. Second, I want to share my findings with you. I hope […] Read more