Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Mocking Node object not possible while writing junit when MockitoJUnitRunner framework is used

Avatar

Level 2

I am able to mock resource object by loading dummy.infinity.json file into the classpath. But when i try to instantiate node object through that mock resource object.

Node node = resource.adaptTo(Node.class);

node object comes as null.

0 Replies