Salesforce DEX-450 Exam - Topic 2 Question 112 Discussion
Consider the following code snippet:As part of the deployment cycle, a developer creates the following test class:When the test class runs, the assertion fails.Which change should the developer implement in the Apex test method to ensure the test method executes successfully?
D) Add System, runAs (Use; to line 14 and enclose line 15 within Test, startTest); and Test ().
A) Query the Administrator use into memory and enclose lines 15 and 16 within the system,runAs (use); method.
B) Query the Standard User into memory and enclose lines 15 and 16 within the system ,runAs; method.
C) Add @Istest% seeAllDataTrue; to line 12 and enclose lines 15 and 16 within Test .set(Test); and test ste-ptest();.
Nidia
6 months agoGoldie
6 months agoJames
6 months agoFallon
6 months agoFelicidad
6 months agoGayla
7 months agoFrancisca
7 months agoSuzi
7 months agoKenny
7 months agoEdwin
8 months agoJuliann
8 months agoLouvenia
8 months agoBobbie
8 months agoOliva
1 year agoAudra
1 year agoDalene
1 year agoMargurite
1 year agoCyndy
1 year agoTeddy
1 year agoAnnelle
1 year agoAretha
1 year agoCathrine
1 year agoAmie
1 year agoCathrine
1 year agoRonnie
1 year agoMee
1 year agoAimee
1 year agoJody
1 year agoRosamond
1 year agoMarguerita
1 year agoHayley
1 year agoJavier
1 year agoNina
1 year agoSvetlana
1 year agoAlayna
1 year agoBong
1 year ago