Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 7 Question 3 Discussion
An Apex class does not achieve expected code coverage. The testSetup method explicitly calls a method in the Apex class. How can the developer generate the code coverage?
D) Verify the user has permissions passing a user into System.runAs().
A) Add @testVisible to the method in the class the developer is testing.
B) Use system.assert() in testSetup to verify the values are being returned.
C) Call the Apex class method from a testMethod instead of the testSetup method.
Sharmaine
7 months agoGail
7 months agoAlonso
7 months agoCorinne
8 months agoEarlean
8 months agoKris
8 months agoAfton
8 months agoJanessa
8 months agoAmmie
8 months agoWilda
8 months agoGerald
8 months agoLonny
8 months agoSandip Mondal
2 years agoSandip Mondal
2 years agoMike Kang
2 years ago