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 required to use the Spring MVC test and the annotations provided by them. And then, we looked into MockMvc and their assertion method.

In the next chapter, we will go through the e-mail support in Spring to develop an e-mail application. We will then look at the JavaMail API and the Spring API to write e-mails. You will also learn to develop a simple Spring e-mail application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.69.1