Writing Junit test case for custom component, which is extended from core component
Hi All,
I have a custom hero component, which is extended from Image/v3 core component. The sling model is written using Sling Delegation pattern. I have overridden getSrc() and getAlt() methods in my sling model.
How do we write Junit test case for these methods specifically ? Are these methods need to be covered, in general?
Any working example is highly appreciated.
Many thanks in advance!
Best,
Rupal
