Creating tests for DAO and service layers

Integration testing is also needed to validate and verify the results of each repository and service method. All repository transactions are dependent on the java.sql.DataSource package configured by one of the context definitions. Likewise, the services will not be working without the repository beans injected into the container. Although it needs the full configuration of Spring TestContext, this recipe does not need the creation of MockMvc just to execute these test cases.

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

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