Clean Code

Java Testing Weekly 2 / 2016

There are many software development blogs out there, but many of them don't publish testing articles on a regular basis. Also, I have noticed that some software developers don't read blogs written by software testers. That is a shame because I think that we can learn a lot from them. That is why I decided […] Read more

Java Testing Weekly 1 / 2016

There are many software development blogs out there, but many of them don't publish testing articles on a regular basis. Also, I have noticed that some software developers don't read blogs written by software testers. That is a shame because I think that we can learn a lot from them. That is why I decided […] Read more

Writing Clean Tests - Java 8 to the Rescue

In the previous part of this tutorial we solved some common problems found from “clean” unit tests by using nested configuration. I was very happy with the final test class, but after a while I realized that something was bothering me. The only problem was that I couldn’t figure out what it was. I ignored […] Read more

12 Tools That I Use for Writing Unit and Integration Tests

I think that software development is more than just a job. I see myself as an artisan who is trying to get better every day. The "easiest way" to do this is to find a few good tools and find the answers to these questions: When should I use the tool X? How should I […] Read more

Writing Clean Tests - Small Is Beautiful

We have learned that "clean" unit tests might not be as clean as we think. We have done our best to make our unit tests as clean as possible. Our tests are formatted properly, use domain-specific language, and avoid excessive mocking. Nevertheless, our unit tests are not clean because: When we make changes to the […] Read more

Spring Framework has a good support for injecting property values found from properties files into bean or @Configuration classes. However, if we inject individual property values into these classes, we will face some problems. This blog post identifies these problems and describes how we can solve them. Let’s get started. If you use Spring Boot, […] Read more