Dec
12
2008
This is probably fairly well known, but I couldn’t find any doc on it when I searched so I’ll put it up here. First off: Don’t load your Spring Context in your tests unless you absolutely have to. Some integration tests should load it, but keep it to a minimum. Loading the context is expensive, [...]
Tags: maven, spring, unit testing
Dec
01
2008
I read this post about Clover and using it to minimise the number of tests run. A nice idea, so I decided to have a go at it. What it does is use the test-coverage that it was originally written to do, to figure out which tests exercise which classes. So when you change Class1 [...]
Tags: clover, cobertura, compile, Java, maven, optimization, spring, tdd, test
Aug
26
2008
All of us have felt the pain waiting for the web-container to reload after just a minor change to the code. Well, recently i came across JavaRebel from ZeroTurnaround and they seem have solved our problem! And if you, as most of us, enjoy Spring you’ll also enjoy their Spring plug-in to monitor your context-files. [...]
Tags: Java, spring, Tools
Apr
17
2008
Yeah, it’s released. Especially the hierarchical groups is something that I have been missing from just about every security-framework.
Tags: release, spring, spring-security
Mar
26
2008
Spring has been around for quite a while now. I guess most projects still use XML for the config, but with the 2.5 release that will probably change. Alef Arendsen has a blogpost with links to a lot of resources about the new features, and upcoming ones. Update: Spring JavaConfig M3 is released.
Tags: javaconfig, spring
Mar
13
2008
I’m mostly doing batch these days, so I’m keeping an eye out for what’s happening with Spring Batch. It does have a lot of concepts that resemble what our home grown framework is built around, so I can relate to a lot of it. The same reason will also hopefully make us able to migrate [...]
Tags: batch, framework, Java, spring, spring-batch
Oct
31
2007
I have a strong aversion to custom build steps and generation of code. I do have to do it sometimes, but I don’t like it. If I generate a WAR for my application I should not need to generate a new one for each environment I need to deploy it in. Joris Kuipers has a [...]
Tags: build, spring
Oct
23
2007
Gavin King has read the post I pointed to in Extraordinarily typesafe and points out how new features in the Java world are giving us a lot of new possibilities in a type safe way. I am slowly coming to my senses seeing how much benefit newer features like generics, static imports and annotations are [...]
Tags: configuration, javaconfig, spring, typesafety
Feb
04
2007
In my current project we have a fair bit of integration. Loose coupling and all that is excellent, but it does create some challenges: Integrating systems are only available inside the firewall. Sometimes it is relevant to test and develop outside our normal network. Different integrating systems have different availability. You can’t rely on all [...]
Tags: integration, spring, stubbing, testing