Developer is writing tests for a class and needs to insert records to validate functionality.

Which annotation method should be used to create records for every method in the test class?

@TestSetup

@isTest(seeAllData=true)

@startTest

@preTest

Verified Answer
Correct Option - a

To get all Infosys Certified Salesforce Platform Developer 1 Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram