What should the developer do to ensure the data is available to the test?
A developer needs to have records with specific field values in order to test a new Apex class.
What should the developer do to ensure the data is available to the test?
A . Use Anonymous Apex to create the required data.
B . Use SOQL to query the org for the required data.
C . Use Test.Loaddata () and reference a static resource.
D . Use Test.Loaddata () and reference a CSV file
Answer: C
Latest PDI Practice Questions with 191 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments