Home » Author Archives: Petri Kainulainen (page 6)

Author Archives: Petri Kainulainen

Petri is passionate about software development and continuous improvement. He is specialized in software development with the Spring Framework and is the author of Spring Data book.

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 describes how we can get ...

Read More »

From Top to Bottom – TDD for Web Applications


I am a “testing fanatic” but I don’t understand test-driven development. Or so I thought. I have read a few books and numerous blog posts about it, and all of them have one major problem: The examples are always too simple. Those examples might be helpful if you write simple text editors or calculators for a living. I don’t do ...

Read More »

The Dark Side of Best Practices


Best practices are the backbone of software development (or so we are told). Every developer has his own opinions about software development processes, architecture, and programming. These opinions are based on education, personal experiences, and the experiences of other software developers. These opinions are also known as best practices, and every software company has them. Are best practices a good ...

Read More »

Unit Testing of Spring MVC Controllers: REST API


Spring MVC provides an easy way to create REST APIs. However, writing comprehensive and fast unit tests for these APIs has been troublesome. The release of the Spring MVC Test framework gave us the possibility to write unit tests which are readable, comprehensive and fast. This blog post describes how we can write unit tests for a REST API by ...

Read More »

We Should Not Make (or Enforce) Decisions We Cannot Justify


Software development is a strange industry. New technologies emerge in a fast pace and old technologies become obsolete. The ability to learn new technologies is considered as a sign of a great software developer. It is expected from all of us. And yet, all of us don’t welcome these new technologies and ideas with open arms. Let’s consider the following ...

Read More »

Spring Data JPA Tutorial Part One: Configuration


Spring Data JPA is a project which aims both to simplify the creation of JPA based repositories and to reduce the amount of code needed to communicate with a database. I have been using it for a while at my work and in my personal hobby projects and it has indeed make things a lot more simpler and cleaner. Now ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.