PrepAway - Latest Free Exam Questions & Answers

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

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

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

B. Test data is inserted once for all test methods in a class.
C. Records created in the @testSetup method cannot be updates in individual test methods.

D. The @testSetup method is automatically executed before each test method in the test class is executed.


Leave a Reply