Unit testing Spring/Hibernate code using JMock
Posted in java on Feb 27th, 2008
Unit testing a simple Java class like, say, a four-function calculator is trivially easy using JUnit. However, things get a lot harder when you’re using complex support frameworks like Spring or Hibernate. Here are some guidelines for using JMock to help isolate the framework and focus on the code you’re testing.
Before you start, take […]