Valid CRT-450 Dumps shared by ExamDiscuss.com for Helping Passing CRT-450 Exam! ExamDiscuss.com now offer the newest CRT-450 exam dumps, the ExamDiscuss.com CRT-450 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CRT-450 dumps with Test Engine here:
A developer is writing tests for a class and needs to insert records to validate functionality. Which annotation method should be used to create record for every method in the test class?
Correct Answer: C
The @TestSetup annotation method is used to create records for every method in the test class. This method is executed before any test method in the class and the records created in this method are available to all test methods in the class. The records are rolled back at the end of the test class execution. If a test method modifies or deletes the records created in the test setup method, those changes are rolled back after each test method finishes execution. The next executing test method gets access to the original unmodified state of those records. This annotation method can reduce test execution times and improve system resource efficiency compared to creating records for each test method individually. References: Using Test Setup Methods, Free Salesforce Platform Developer 1 Practice Exam (With Answers), SALESFORCE CERTIFIED PLATFORM DEVELOPER I