Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E137 Exam - Topic 4 Question 13 Discussion

Actual exam question for Adobe's AD0-E137 exam
Question #: 13
Topic #: 4
[All AD0-E137 Questions]

A developer has created a new Sling Model called Flarp. The developer wants to create a unit test for this Sling Model.

What needs to be changed for the unit test to successfully test the getName method of the Flarp Sling Model?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Millie
2 days ago
I'm not entirely sure, but I remember something about needing to replace AemContext with SlingContext for testing. Is that correct?
upvoted 0 times
...
Donte
7 days ago
I think we might need to add a ctx.load().json() method call to set up the node data properly for the test. That seems familiar from other unit tests I've seen.
upvoted 0 times
...

Save Cancel