Sign in to Community
Sign in to view all badges
I recently started using AemMocks and am still exploring. In one of the requirements, Sling models are implemented all looks fine till now. I started unit testing the same using Aem Mocks.
I am unable to inject the service reference into the test class using 'context.registerInjectActivateService'.I have gone through numerous reference documents online but nothing is helpful.
any help is appreciated.
Could you please give a try to below code to mock OSGi service?