Expand my Community achievements bar.

Unit Testing in AEM - Hands On

Avatar

Community Advisor

Indexing in AEM - Indexing modes and Index Types (32).png

Abstract:

Creating Test Java Class as part of AEM application involves

  • Creating JUnit Test case from our IDE
  • Creating AemContext (from io.wcm.testing.mock.aem.junit5.*)
  • Implement setUp/@BeforeEach method for creating test fixture
  • Implement methods to be tested

This post illustrate the above steps in detail and few sample snippets/test statements.

Blog Content :

https://myaemlearnings.blogspot.com/2020/07/unit-testing-in-aem-hands-on.html

 

2 Replies

Avatar

Administrator

Thank you for sharing this content here. It is always great to read your blogs



Kautuk Sahni