How can I test an old Spring 2.0.7 application with JUnit?
问题 I have an old app built with an ancient version of Spring: 2.0.7. I have been tasked with adding new functionality to this app, so I'm required to write some JUnit tests too. So far, I have writen mockup classes for my services, and an applicationContext-test.xml file placed under src/test/resources/ . Typically, the next step would be to write my test case like this: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = {"/applicationContext-test.xml"}) public class