Sometimes an object instance is not enough; specially, when you use a stateful classes on concurrency environment runtime, a pool of object is a good solution to achieve a multithreaded executions.
In this article, I’ll show you how to set up this configuration with Spring.
Continue reading “5 minutes with – Spring Object Pooling”
In my previous post on the argument (Junit testing with Spring), I skipped a very interesting part of testing attributes in the code which are inside methods.
In these cases, Mockito it’s very helpful to solve the problem.
Continue reading “Junit testing with Spring – part 2”
Have you ever tried to build a Unit Test about servlet, web services or REST services? Whatever is your answer I would like to illustrate how build it with Mockito framework with, as usual, a very easy example.
Continue reading “Unit test with Mockito”
Ok, you’ve done the best code you’ve ever written in your life. Well done but, even the best code written in this world, should have a test case inside.
This simple rule is the basic for code maintenance over the time. Unfortunately, it’s not common enough as I wish it would be.
Continue reading “5 minutes with – Spring Junit”