Archive for the Testing category

Ben Hale

OSGi Test Stubs 1.0.0.M1

I'm pleased to announce the 1.0.0.M1 release of SpringSource's OSGi Test Stubs.  These stubs offer a way to unit test complex OSGi Framework interactions without needing a full OSGi container.

Package - Download
Git - git://git.springsource.org/osgi-test-stubs/osgi-test-stubs.git

The Problem
As the dm Server team has been developing, we found that one of the biggest problem areas for testing for us [...]

Ben Alex

Exploring Roo's Architecture

Last month we discovered how easy it is to build a fully-fledged enterprise application in just a few minutes using Spring Roo - our new productivity tool for Java developers. While many Java developers have already started evaluating Roo to help save time on their projects, I've received a lot of questions from people curious [...]

Costin Leau

Spring Dynamic Modules 1.0 is here

I am glad to report (along side Adrian) that after 3 milestones and 2 release candidates, Spring Dynamic Modules (formerly known as Spring OSGi) 1.0 has been released.
A lot of features have been improved or added since my previous post (about 1.0 M1); I'll talk more about them in future entries (there is also the [...]

Ben Hale

Spring Project CI Builds

Over the last couple of weeks, fellow i21 employee Costin Leau and I have been working on improving the Continuous Integration processes of the Spring projects. When we started, we had separate builds running in Cruise Control, Continuum, and even a custom cron job. We were having some trouble getting any of our [...]

Dave Syer

BeanInitializer: wiring dependencies in unit tests

One of the things that irritates me the most about unit testing some classes in a Spring context, is initialising them with all their dependencies. This is especially true of Spring framework extensions, like FactoryBean implementations or *Aware implementations. It is cumbersome to add all the dependencies, and easy to forget to call [...]

Alef Arendsen

CarPlant not accepting null CarModels

Last Friday I finished a training session at a client of ours. Because I had some time to kill in the hotel I was staying in, I polished the sample application I coded up during the training to post it online for the guys of the training. Usually I try to find a little sample [...]

Dave Syer

Unit Testing with Stubs and Mocks

I was on site with some clients the other day, and they asked me about unit testing and mock objects. I decided to write up some of the discussion we had as a tutorial on creating dependencies (collaborators) for unit testing. We discuss two options, stubbing and mock objects and give some simple [...]

Ben Hale

What happened to getConfigLocations()?

I was on site at a customer last week and a question came from the crowd, "Why isn't getConfigLocations() abstract anymore?" After working in front of customers for a while, it becomes rare that you're speechless, and yet I was. To be honest, my first thought was that there was no way the [...]