Monthly Archives: March 2005

Unit testing with coverage reports from within Eclipse

The ever verbose (if you've seen his blog) Pjammy pointed me to this nifty Eclipse plugin called djUnit. Just right click on a JUnit test, select run with djUnit, and it runs the JUnit test with instrumentation to produce a … Continue reading

Posted in Java | Leave a comment

Static typing increases productivity and reduces errors

I’m going to come right out and say that I have a strong preference for static typing in a programming language, especially as it applies to medium and large sized applications with multiple developers. Here’s why: 1. Refactoring: IDE’s make … Continue reading

Posted in Java, Ruby, Software Engineering | Leave a comment

Testing with mock objects

I put together a workshop for the team at work on unit testing and design with mock objects. I opted to show a small sample using both EasyMock and JMock. I'd used JMock before but EasyMock had some nice surprises … Continue reading

Posted in Java | Leave a comment

Java's verbose XML API

It feels like it takes me too many lines of code in Java to create a new XML document, transform it, and then validate the result. At every company I've worked at we've ended up with an XML utility class … Continue reading

Posted in Java | Leave a comment

Java XML data binding with Castor

In working on an XML data feed project at work I needed to generate the feed from our POJO domain model. I was pleasantly surprised to find that Castor XML made this task quite easy. The Marshalling framework will marshall … Continue reading

Posted in Java | Leave a comment