Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

Importing OOTB Test class in Custom Test Class

Avatar

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.

https://github.com/adobe/aem-core-wcm-components/blob/main/bundles/core/src/test/java/com/adobe/cq/w... 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
2 Replies

Avatar

Correct answer by
Community Advisor