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. Query for existing records in the database.
B. Execute anonymous code blocks that create data.

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

D. Access data in @TestVisible class variables.


Leave a Reply