Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges


Importing OOTB Test class in Custom Test Class


Community Advisor

I have overlayed an OOTB core component. I have modified & added some fields to it. I was able to create a SLING Modal for the same through delegation and only wrote Injectors & getters for the custom fields I added.

Now I want to acheve the same in Unit test classes.

Although, I am able to import com.adobe.cq.wcm.core.components.internal.models.v1.ButtonImpl, 

I am not able to import com.adobe.cq.wcm.core.components.internal.models.v1.ButtonImplTest. 


Is there anything that I'm missing here?


I want to achieve something similar like ButtonImplTest(v2), where it has extended v1 test class in the WCM Core components code. 


1 Accepted Solution


Correct answer by
Community Advisor
2 Replies


Correct answer by
Community Advisor