Testing Your Spring Application
In this chapter, you are going to start using the Spring Framework Features. So far in previous chapters, you have been using the JUnit test framework, which is fine if you want to do simple testing. Previously, every time you needed to declare the application context’s implementation like the ClassPathXmlApplicationContext class. You did this by calling context = new ClassPathXmlApplicationContext("META-INF/spring/mydocuments-context.xml") to load your XML configuration file in order to use the Spring container.
The Spring Framework Test library provides some features like unit testing by using JUnit ...