Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
how can unit test the controller, service & persistence classes in liferay
hi,
can any one please let me know the process of unit testing of controller , service and persistence layer classes in liferay in detail
can any one please let me know the process of unit testing of controller , service and persistence layer classes in liferay in detail
Ganesh Pulihi,See this related recent post (by yourself, actually).
can any one please let me know the process of unit testing of controller , service and persistence layer classes in liferay in detail
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.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™