List of questions
Related questions
Question 25 - AD0-E134 discussion
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?
A.
Use a mock framework in the unit test to inject the CalculationService
B.
Instantiate the EmployeeService in the unit test and pass it to the constructor of theCalculationService
C.
Use a mock framework in the unit test to inject the EmployeeService
D.
Use the feature flag in the unit test to disable the calls to the EmployeeService
Your answer:
0 comments
Sorted by
Leave a comment first