Testing the Spring Service layer through JUnit
Steps to enable Junit test for spring service layer
This post will explains the steps required to test the spring service layer through JUnit without deploying to the server.Right Click on the service class for which the test class needs to be created and click on New and select JUnit Test Case
Click on Next and provide the Test Class Name and the package to which the test class has to be created.
Click on Next and select the methods for which the test methods needs to be created and click on finish.