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 Exam AD0-E134 Topic 6 Question 16 Discussion

Actual exam question for Adobe's AD0-E134 exam
Question #: 16
Topic #: 6
[All AD0-E134 Questions]

A developer is on an AEM application that is being used to calculate an employee's salary. The calculation is done in an OSGi service called CalculationService. This service class has a dependency on one other service, called the EmployeeService.

How should the developer make sure that the critical code in the CalculationService has a high unit test coverage?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Timothy
5 hours ago
But using a mock framework allows for better isolation and control over the test environment.
upvoted 0 times
...
Nathalie
2 days ago
I disagree, I believe instantiating the EmployeeService in the unit test is more reliable.
upvoted 0 times
...
Timothy
3 days ago
I think using a mock framework to inject the CalculationService is the best option.
upvoted 0 times
...

Save Cancel