A little background:
I am Using Spring 2.5, and specifically Spring IOC and annotations.
I am using @Autowired in my code (the Autowiring is don
I agree with Didier. Here is an example of how you can exclude the implementations that you want to mock in your test application context.
Include this application context in your test as follows :
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"classpath:/applicationContext-test.xml"})
public class MyTest {....}