diff --git a/spring-framework-reference/src/testing.xml b/spring-framework-reference/src/testing.xml index b88e6faac07..9b5ab8b4c7b 100644 --- a/spring-framework-reference/src/testing.xml +++ b/spring-framework-reference/src/testing.xml @@ -885,6 +885,7 @@ public void testProcessRepeatedly() { @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration public class MyTest { + @Autowired private ApplicationContext applicationContext; @@ -935,7 +936,7 @@ public class MyTest { @RunWith(SpringJUnit4ClassRunner.class) // ApplicationContext will be loaded from "/applicationContext.xml" and "/applicationContext-test.xml" // in the root of the classpath -@ContextConfiguration(locations={"/applicationContext.xml", "/applicationContext-test.xml"}) +@ContextConfiguration({"/applicationContext.xml", "/applicationContext-test.xml"}) public class MyTest { // class body... } @@ -1799,6 +1800,12 @@ public class HibernateClinicTests extends AbstractClinicTests { } objects. + + Mockito: a Java mock + library based on the test spy + pattern. + + DbUnit: a JUnit extension (also usable with Ant and Maven) targeted for