A. Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.
B. Move the prerequisite reference data setup to a @testSetup method in the test class.
C. Move the prerequisite reference data setup to a static method in the test class and call that from each test method.
D. Move the prerequisite reference data setup to the constructor for the test class.

Suggest answer: B

Reference:

No comments:

Please share to make the community better.