PrepAway - Latest Free Exam Questions & Answers

Which two statements are true about using the @testSetup annotation in an Apex test class?

Which two statements are true about using the @testSetup annotation in an Apex test class? Choose 2 answers.

A. Records created in the @testgroup method cannot be updated in individual test methods
B. The @testSetup method is automatically executed before each test method in the test class is executed.

C. The @testSetup annotation cannot be used when the @isTest(SeeAllData=True) annotation is used.

D. Test data is inserted once for all test methods in a class.


Leave a Reply