Skip to content

Category Archives: UnitTest

Testing JdbcTemplates with HSQLDB

I’m writing an application that’s going to perform some serious data munging with a database. The schema has been defined (mostly) but there’s no data I can use to test. For a short period of time I added my own data to the dev db server, but I found that it’s not reliable enough. It [...]

Here’s an Idea: Beanshell + EasyMock + Junit in Eclipse

This is postmodern computing at it’s finest… I’m a fairly recent convert to test driven development. I’ve always thought it seemed like the right thing to do, but have only recently bought into it whole-heartedly when I took over someone else’s code base and was told the requirement’s have changed and I needed to modify [...]

EasyMock Challenge

I’ve been using EasyMock with my unit tests on a current project. Generally, it’s been useful; to configure my project to run in a test environment on my desktop is a really pain. By using EasyMock I can create a very controlled environment for my tests by faking just enough of it to run. The [...]