Writing Clean Tests - It Starts From the Configuration

The first thing that we have to do when we start writing either unit or integration tests is to configure our test classes. If we want to write clean tests, we must configure our test classes in a clean and simple way. This seems obvious, right? Sadly, some developers choose to ignore this approach in […] Read more

Using jOOQ With Spring: Sorting and Pagination

JOOQ is a library which helps us to get in control of our SQL. It can generate code from our database and help us to build typesafe database queries by using its fluent API. The earlier parts of this tutorial have taught us how we can configure the application context of our application, generate code […] Read more

Three Reasons Why We Should Not Use Inheritance In Our Tests

When we write automated tests (either unit or integration tests) for our application, we should notice pretty soon that Many test cases use the same configuration which creates duplicate code. Building objects used in our tests creates duplicates code. Writing assertions creates duplicate code. The first thing that comes to mind is to eliminate the […] Read more

10 Books Every Java Developer Should Read

I have read my share of software development books and I have noticed that it is very rare to find a book which I want to read more than once. However, once in a while I find a book which teaches me new things every time when I read it. This blog post is a […] Read more

Using jOOQ With Spring: CRUD

jOOQ is a library which helps us to get back in control of our SQL. It can generate code from our database and help us to build typesafe database queries by using its fluent API. The earlier parts of my jOOQ tutorial have taught us how we can configure the application context of our example […] Read more

The Cost of Context Switching

I have always thought that I am good at multitasking. That is why I believed that I don't have to pay the price associated with context switching (or task switching). This week I realized that have been wrong. I am not very good at multitasking and context switching is much more expensive than I thought. […] Read more