Exam4Training

What should an architect recommend?

A team of developers at Universal Containers has developed Apex Triggers and Apex Classes in a sandbox. The team has also written test classes to unit test these triggers and classes. When executed in the sandbox, all the test methods pass and all the classes meet the minimum code coverage requirement. But when they tried deploying these components to production, a few of these test methods failed

What should an architect recommend?
A . Create test data in production before deploying the test classes
B. Set SeeAllData to True to use the data in production.
C. Explicitly set SeeAllData to True and generate data in test methods.
D. Do not use SeeAllData and generate data in the test methods

Answer: D

Exit mobile version