Skip to main content

Diigo Home

behind the times: Autowired JUnit Tests with Spring 2.5 - The Diigo Meta page

hamletdarcy.blogspot.com/...unit-tests-with-spring-25.html - Cached

This link has been bookmarked by 2 people . It was first bookmarked on 19 Dec 2008, by Fyun Li.

  • 20 Dec 08
    pjcabrera
    PJ Cabrera

    Spring 2.5 ships with great support for integration testing through the classes in the org.springframework.test package. These classes allow you to dependency inject your test cases off of your existing Spring configuration, either by using your production Spring configuration file or one you've defined especially for the test case. This post explains how to annotate your JUnit 4 test cases to be autowired, but there's a lot more too the new spring-test.jar and it works with JUnit 3.8 also.

    springframework unit.testing development programming junit

  • 19 Dec 08