Unit Testing in AEM - Hands On | Community
Skip to main content
Vijayalakshmi_S
Level 10
July 13, 2020

Unit Testing in AEM - Hands On

  • July 13, 2020
  • 1 reply
  • 1405 views

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

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

kautuk_sahni
Community Manager
Community Manager
July 14, 2020

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

Kautuk Sahni
Vijayalakshmi_S
Level 10
July 14, 2020

Thanks so much Kautuk