Category Archives: How To

Migrating from SVN to Git

This post documents the steps to migrate from SVN files and revision history to Git, specifically in a Windows environment.

Integration Tests with Selenium and tomcat7-maven-plugin

To create an automated integration test of my spanners-struts webapp, I need a way of launching it as part of the Maven build process.

Generate database schema DDL from Hibernate hbm mappings

The hibernate3-maven-plugin can be used to create a schema DDL from Hibernate mapping files

Maven release plugin

If you’re doing this sort of process manually it will take a while. Instead, it can be done by Maven using two goals – release:prepare and release:perform.

DbUnit and Jailer

Jailer will export data from a single table and all data that is related to it by foreign key references. This can result in far more data being scripted than expected.

Web service testing with soapUI

soapUI is an essential free tool for testing SOAP and other web service protocols. It was particularly useful for testing the SpannersWS demo as it works well with WSS.

Rounded corners in CSS / IE Tester

Fortunately IETester exists to quickly test web pages using the rendering engines of IE 5.5, 6, 7, 8 and the IE9 preview

Spring-WS and Security

Security mechanisms are notoriously difficult to implement. By their nature they’re designed to prevent something from working unless it is used exactly correctly. Having Spring-WS do the heavy lifting makes our application far more likely to work and far more likely to be secure.

Test Coverage

Using code test coverage analysis we’ve got a new metric we can use to judge the quality of our code. As with any metric though, some discretion is required… I find that this sort of tool is mostly useful to catch dumb mistakes.


DbUnit is a JUnit extension targeted at database-driven projects that, among other things, puts your database into a known state between test runs.