Hello Guys,
I have deployed wcm-io-testing package in AEM 6.2. When i am creating new aem project to write Junit testcases using wcm.io.
In my aem project in build path under project i am configuring wcm-io-testing package to use AEM-Mock , When i am writing the
@Rule public final AemContext context = new AemContext();
getting error not able to resolve AemContext type while i have included the required package also.
Please help me in this regard if you have complete example of wcm-io included java class with its test class then please share with me because i am not getting the complete idea about it.
Thanks
Arjit
Views
Replies
Total Likes
Add the aem mocks dependency in your pom file
<dependency>
<groupId>io.wcm</groupId>
<artifactId>io.wcm.testing.aem-mock</artifactId>
<version>1.8.0</version>
</dependency>
Views
Replies
Total Likes