ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 86 - Certified Platform Developer II discussion

Report
Export

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);
Answers
A.
List<sObject> Is = Test.loadData (Lead.sObjectType, fmyTestLeads f);
B.
myDataFactory.createTestRecords (10)
Answers
B.
myDataFactory.createTestRecords (10)
C.
Database.createTestRecords (10)
Answers
C.
Database.createTestRecords (10)
D.
List<sObject> Is = Test.loadDat (Lead.sObjectType, $Resource + 'myTestLeads f);
Answers
D.
List<sObject> Is = Test.loadDat (Lead.sObjectType, $Resource + 'myTestLeads f);
Suggested answer: A, B
asked 23/09/2024
khalid Hassan
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first