Expand my Community achievements bar.

SOLVED

JUnit test case

Avatar

Level 4

I have a service for that i need to write a JUnit in AEM.

Can any one give me some example regarding.

Thanks in advance

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Would love to know exactly what you are looking for . But may be for menatime this would help you https://docs.adobe.com/content/ddc/en/gems/From-Unit-Testing-to-Integration-Test-of-an-AEM-Applicati...

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Would love to know exactly what you are looking for . But may be for menatime this would help you https://docs.adobe.com/content/ddc/en/gems/From-Unit-Testing-to-Integration-Test-of-an-AEM-Applicati...

Avatar

Level 10

When you write a Maven Archetype project - you get sample test classes that lets you write tests. See "How can I test my AEM Code?" here; http://scottsdigitalcommunity.blogspot.ca/2017/02/adobe-aem-tips-and-tracks-that-are-not.html