Skip to content

Easier testing with the Spring framework

published: 

Spring comes with some extremely useful convenience classes for test automation using JUnit. In order to use them, be sure to add the spring-mock.jar to your project. Here’s a rundown of what’s available in the org.springframework.test package:

These classes have been a lifesaver and the performance increases help make running tests fast and easy. One important note: these test classes still use the JUnit 3.x API. If you’ve moved to JUnit 4, you may need to write an adapter class or wait for the Spring team to release some updated code.


tags: