Exercise

Q1. What is the difference between JUnit 4 and TestNG?

Q2. What is the difference between unit testing and integration testing?

Q3. Explain the Spring MVC test framework.

Q4. Explain @ContextConfiguration and @WebAppConfiguration.

Q5. Explain MockMvc and @RunWith(SpringJUnit4ClassRunner.class).

Tip

The answers to these are provided in Appendix A, Solution to Exercises.

Get Spring: Developing Java Applications for the Enterprise now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.