PrepAway - Latest Free Exam Questions & Answers

Which approach should be used to provide test data for a test class?

Which approach should be used to provide test data for a test class?

A. Use a test data factory class to create test data.

B. Query for existing records in the database.
C. Access data in @TestVisible class variables.
D. Execute anonymous code blocks that create data.


Leave a Reply