how can unit test the controller, service & persistence classes in liferay

Ganesh Puli, modified 6 Years ago. New Member Posts: 19 Join Date: 2/27/18 Recent Posts
hi, 
can any one please let me know the process of unit testing of controller , service and persistence layer classes in liferay in detail
thumbnail
Olaf Kock, modified 6 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Ganesh Pulihi, 
can any one please let me know the process of unit testing of controller , service and persistence layer classes in liferay in detail
See this related recent post (by yourself, actually).

On top of that: generated classes (like persistence) won't need tests - either the generator (service builder) works, or it doesn't. If you add custom code: Extract the logic, and test those extracted portions, as outlined in the linked post.