since ‎28-08-2018
‎10-12-2019
HKesani
Level 1
Unable to inject a service in junit test cases to test a sling model (having an injection of service using @OSGiService annotation)
Avatar

HKesani

HKesani
- Adobe Experience Manager
Hi All,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.Problem: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.Thanks,Harshith.

Views

1.4K

Like

1

Replies

1
Likes given to
Likes from