since ‎22-10-2020
‎09-11-2020
RRaj
Level 1
AemMock in JUnit4 is not able to return page.getTemplate
Avatar

RRaj

RRaj
- Adobe Experience Manager
I am trying to run the test for one of my Model class for Custom Render Condition. Its testing if current is a template allowed to show the tab/field in dialog. When I am running test for this code using AemMock and JUnit4 its failing when debug I found its not able to get template from the page object: final Template pageTemplate = page.getTemplate(); //The above, getTemplate returns null for my Unit test below templatePathOfCurrentPage = pageTemplate.getName(); But at the same time if I change...

Views

127

Likes

0

Replies

0