JUNIT Liferay 7.0 - Database Access Service Builder

Kevin Matthews, modified 6 Years ago. Expert Posts: 253 Join Date: 1/25/16 Recent Posts

Hi ,

I would like to know how can I create a JUNIT for my modules.  I have a module  that was generated by service builder api and  service  in Liferay 7 microservices. I have a method call retrieveSchedulerDetails which just basically go to the DB and get schedule information. This method gets call from my LocalServiceUtil class. I would like to create a junit to test this method. Can someone share with me in how to accomplish this task?

 

Thanks,

Kevin