Summary

In this chapter, you learned about the Spring test. We understood testing using JUnit 4, its annotations, it's assert statements, and demonstrated all this with an example. Then, we moved on to testing using TestNG and its annotations. We also demonstrated this with an example. We understood Agile software testing, which includes unit testing and integration testing. And then, we went through unit testing for the isolated classes and then we went through the Mockito framework for the dependent class. We also looked into integration testing with the help of an example. Then, we created a unit test for the Spring MVC controller using JUnit. And finally, we discussed the topic of the Spring MVC test framework, where we saw the dependencies ...

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.