ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 58 - Certified Platform Developer II discussion

Report
Export

A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow. What can a developer to do address the issue?

A.
Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.
Answers
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 the constructor for the test class.
Answers
B.
Move the prerequisite reference data setup to the constructor for 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.
Answers
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 a @testSetup method in the test class.
Answers
D.
Move the prerequisite reference data setup to a @testSetup method in the test class.
Suggested answer: A
asked 23/09/2024
hajar mechrany
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first