Monthly Archives: May 2007

Using classpath*: vs. classpath: when loading Spring resources.

After a few hours of hair-pulling and a deep tour of the Spring source, we realized that the problem was that our test Spring configuration was in a different classpath root from our Hibernate mappings, even though both directories were in the test’s classpath. Continue reading

Posted in Web | Tagged | Leave a comment

DBUnit 2.2, Spring, and Testing

You may have noticed that DBUnit changed its connection closing behavior in v2.2. We noticed it when tests deriving from our custom DatabaseTestCase implementation (which uses DBUnit) starting failing. Initially we just reverted back to version 2.1. Since then I’ve … Continue reading

Posted in Web | Tagged , | Leave a comment

Generic Custom Argument Matching in EasyMock

EasyMock is a clean, simple library for creating mock objects. It provides a whole range of facilities for declaring our expectations of the method call interactions on the mock including call count, call order, return values, exceptions, and argument matchers. … Continue reading

Posted in Process | Tagged , | Leave a comment