Adobe AD0-E134 Exam - Topic 6 Question 16 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?
D) Use the feature flag in the unit test to disable the calls to the EmployeeService
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 the CalculationService
C) Use a mock framework in the unit test to inject the EmployeeService
Josphine
10 months agoGail
10 months agoMaryrose
10 months agoLeota
10 months agoLeatha
11 months agoChuck
11 months agoKerry
11 months agoTamekia
11 months agoLashawnda
11 months agoRanee
11 months agoLorriane
11 months agoEdison
11 months agoEttie
11 months agoLisbeth
11 months agoRyan
12 months agoCaitlin
12 months agoMarnie
12 months agoNelida
12 months agoJolanda
1 year agoTaryn
1 year agoShenika
1 year agoJaclyn
1 year agoBlossom
1 year agoKatlyn
1 year agoSalome
1 year agoRoxanne
1 year agoScarlet
1 year agoNikita
1 year agoBerry
1 year agoTruman
1 year agoValda
1 year agoFidelia
1 year agoRoxanne
1 year agoAlesia
1 year agoLai
1 year agoDelmy
1 year agoFausto
1 year agoFatima
1 year agoFidelia
1 year agoTimothy
1 year agoNathalie
1 year agoTimothy
1 year ago