Displaying posts tagged with

“spring”

Nov
22
2009

Lessons on testing a JPA Dao

I wanted to explore unit testing JPA DAO and models. Hand crafting solutions is quite time consuming. I found something called Unitils which refines another project Dbunit. In theory it should significantly reduce the complexity and save some time. So one Saturday, I sat down to explore the space and write this blog.

Nov
19
2009

5 exciting things coming with Spring 3.0

In a previous blog entry I wrote about the now ancient announcement that spring 2.5 would be available. On the 2nd anniversary of that announcement I would like to examine the things I am looking forward to in Spring 3.0.
Release Announcement: 13/11/2009
5 cool things available in Spring 3.0

Java 5 fully used throughout the whole [...]

Nov
17
2009

Racing with Roo

In my last post I said that I would have a deeper look at Spring Roo. Well I still have not quite done that. But I did have a race to see how long it would take me to get my first website up and running with STS and Roo shell. The [...]

Nov
16
2009

Quick look at the latest SpringSource STS and Roo

Christian Dupuis from SpringSource shows some of the new features on the SpringIde Blog
I used Spring STS for a few months before starting at Lab49, and found it to be a good distribution over the standard Eclipse build. It has lots of extra productivity features for Spring based development some of which are not [...]

Nov
16
2009

Test anti-patterns project, contributors wanted!

I deliberately wrote a poor quality test, so that I could show how easy it is to re-factor it to a better one. I was driven by having seen lots of such poor tests and to be honest I don’t want to see another of its ilk again. I might write a test like this myself, but I would never leave it like this. Its part finished, littered with cut and paste, poorly named methods and hard coded values.

I show how to re-factor the test using several patterns for test fixtures. The setup stage is often the worst bit of a bad test. If you want to contribute some of your own bad tests and example improvements, read the blog, download the project and contribute!