Unit Testing in AEM - Hands On

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

572 likes

Total Posts

726 posts

Correct reply

239 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

572 likes

Total Posts

726 posts

Correct reply

239 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

13-07-2020

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

 

Replies

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,200 likes

Total Posts

6,394 posts

Correct reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,200 likes

Total Posts

6,394 posts

Correct reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

13-07-2020

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

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

572 likes

Total Posts

726 posts

Correct reply

239 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

572 likes

Total Posts

726 posts

Correct reply

239 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

14-07-2020

Thanks so much Kautuk