Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Unit Testing in AEM - Hands On

Avatar

Avatar
Give Back 50
MVP
Vijayalakshmi_S
MVP

Likes

442 likes

Total Posts

578 posts

Correct Reply

193 solutions
Top badges earned
Give Back 50
Give Back 5
Ignite 10
Ignite 5
Ignite 3
View profile

Avatar
Give Back 50
MVP
Vijayalakshmi_S
MVP

Likes

442 likes

Total Posts

578 posts

Correct Reply

193 solutions
Top badges earned
Give Back 50
Give Back 5
Ignite 10
Ignite 5
Ignite 3
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,128 likes

Total Posts

6,133 posts

Correct Reply

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

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,128 likes

Total Posts

6,133 posts

Correct Reply

1,144 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
Give Back 50
MVP
Vijayalakshmi_S
MVP

Likes

442 likes

Total Posts

578 posts

Correct Reply

193 solutions
Top badges earned
Give Back 50
Give Back 5
Ignite 10
Ignite 5
Ignite 3
View profile

Avatar
Give Back 50
MVP
Vijayalakshmi_S
MVP

Likes

442 likes

Total Posts

578 posts

Correct Reply

193 solutions
Top badges earned
Give Back 50
Give Back 5
Ignite 10
Ignite 5
Ignite 3
View profile
Vijayalakshmi_S
MVP

14-07-2020

Thanks so much Kautuk