What can the developer use to provide test data to the test methods?

A developer needs test data for Apex test classes.

What can the developer use to provide test data to the test methods? (Choose two.)
A . List<sObject> Is = Test.loadData (Lead.sObjectType, fmyTestLeads f);
B . myDataFactory.createTestRecords (10)
C . Database.createTestRecords (10)
D . List<sObject> Is = Test.loadDat (Lead.sObjectType, $Resource + ‘myTestLeads f);

Answer: A,B

Latest PDII Practice Questions with 280 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments