Question
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.
///////////////////////////////////////////////////////////////////////
@istest private class CreateandExecuteTest { @testsetup static void setup(){ list } }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started