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