2026-02-16
I have been practising Test-Driven Development for more than 25 years. The red-green-refactor cycle is second
nature.
I have of course heard a lot about AI tools and LLMs over the last couple of years. The times I have tried them, I have
not been impressed. Their proposals didn't compile. They seemed to solve the wrong problem. This was probably
because they lacked the context of the project I'm working on. Honestly, a lot of what I have seen has been
rubbish.
Not too long ago I saw a thread on LinkedIn where some people who I know really know what they are doing discussed their
experience with AI assistants and specifically Claude Code. I decided to give it a try.
AI
TDD
2020-04-30
AssertJ is a great assertion framework for Java. It is in my opinion much better
than any of the available alternatives. Two areas where AssertJ shines are verifying collections and verifying exceptions.
It is also extendable, so you can implement custom assertions for your domain objects.
The way to assert something is done using the method assertThat(). A typical example looks like this:
assertThat(actual).isEqualTo(expected);
isEqualTo() is overloaded and can be used for a lot of comparisons.
Java
TDD
2020-03-11
It happens that you are working on something and realize that you
have to change context. Something urgent popped up and
you need to get it into production as soon as possible.
However, you have uncommitted changes that doesn't work properly. What do you do now?
You can't commit your current changes. They are not done and should
not end up in production. And you are smart so you avoid branching.
Your current changes are on master and should be on master.
Git