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
7 months agoGail
7 months agoMaryrose
7 months agoLeota
7 months agoLeatha
7 months agoChuck
8 months agoKerry
8 months agoTamekia
8 months agoLashawnda
8 months agoRanee
8 months agoLorriane
8 months agoEdison
8 months agoEttie
8 months agoLisbeth
8 months agoRyan
8 months agoCaitlin
9 months agoMarnie
9 months agoNelida
9 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