![Indexing in AEM - Indexing modes and Index Types (34).png Indexing in AEM - Indexing modes and Index Types (34).png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/25598iB317F13A41B9D304/image-size/large/is-moderation-mode/true?v=v2&px=999)
Abstract:
Prior to Sling Models, WCMUsePojo is used/recommended for performing back end operations as part of AEM component development. Writing unit test for the same involves mocking the Bindings API and providing dummy implementation.
This post starts with quick recap about WCMUsePojo and hence writing test statements for the same with simple use case.
Blog content:
https://myaemlearnings.blogspot.com/2020/07/unit-testing-hands-on-for-wcmusepojo.html