Monday, November 16, 2009

Why Mockito beats EasyMock & co.

Unit testing your application is the key to develop a good piece of software.
Mocking is the key to write good unit test.
Mockito is the key that opens the door to a way of mocking that has never been so simple and elegant.

Let's take a look at two different versions of the same unit test, the first uses easymock while the second is based on mockito

Sunday, November 15, 2009

Running ActiveMQ using Spring

Since the ActiveMQ web site is not really clear on how to integrate it with the Spring framework I decided to write this post to clarify some points.
The really good news I can already point out is that it is possible running a JMS inside a servlet container like Tomcat without any JCA adapter, so you do not need Jencks or similar.

10 Guidelines to be an Agile Developer

  1. Go into action: if you have any idea on how to implement something but your project manager or boss is not there, is busy or for some other reason you are blocked; do not wait for the GO , just do it!
  2. Do not implement something you do not need: never write a class, a method or even a variable if you do not need it right now, most of the times you will never need it.