Spring: Developing Java Applications for the Enterprise
by Ravi Kant Soni, Amuthan Ganeshan, Rajesh RV
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access