Don’t make a mockery of testing

February 02nd 2008 - 12:25 pm by james

If you’ve worked on a Java team that valued test automation, you’ve probably been exposed to EasyMock or JMock.

While well intended, these tools imply that teams should focus their testing efforts on granular unit tests that provide maximum code coverage. Often these teams do this at the expense of integration tests. Since time is always finite, we suggest you spend the majority of your testing time on integration tests. Only after you’ve exhausted all integration testing possibilities should you be tempted to use mocks.

(more…)


FTP passive mode and Java Sockets

November 09th 2007 - 6:21 pm by mike

Okay, my first blog entry. Be gentle…

I just spent most of the day diagnosing this problem with an FTP server and a Java application, and I thought maybe I could save someone the effort some time. (more…)


Replacing gcj on Fedora

October 23rd 2007 - 11:51 am by james

Due to licensing issues, Linux distros can’t distribute Sun’s JDK. Instead they use gcj, which in my experience is utterly broken. I just provisioned a new Fedora 7 VPS server today, and as part of getting tomcat and ant installed I needed to replace gcj with Sun’s JDK. Here’s the steps:
(more…)


Unit testing Flex

October 22nd 2007 - 5:22 pm by james

This is part 3 of my exploration into Flex. In part 1 I wrote a simple weather forecast application. In part 2 I refactored the non-UI code into separate ActionScript classes. In this part I discuss unit testing those classes using FlexUnit. In short, FlexUnit allows you to run unit tests from the command line.

(more…)