Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, I'm trying to figure out this question for my Salesforce APEX practice exam. Below, I have written the code that I believe to be

Hi, I'm trying to figure out this question for my Salesforce APEX practice exam. Below, I have written the code that I believe to be correct as the question is off. The answer is C, but I'd like to know why. From my knowledge, @testsetup acts as what the insert will be for every @istest, and the @istest is specifically for that inner class of code. So because there is no update on the last @istest, that's why it remains as 333-8780 and 333-8781 respectively.image text in transcribed

///////////////////////////////////////////////////////////////////////

@istest private class CreateandExecuteTest { @testsetup static void setup(){ list testaccts = new list(); for(integer i=0; i

} }

57.What is the result of the debug statements in testMethod 3 when you create test data using testSetup in below code? gisTest private class CreateAndExecuteTest f etestsetup static void setup () i // Create 2 test accounts List testAccts = new List() for (Integer i=0,i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

3. How would you address the problems that make up the situation?

Answered: 1 week ago

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago