How should the Developer overcome this problem?
While writing a test class that covers an Opportunity LineItem trigger, a Developer is unable to create a standard PriceBook since one already exists in the org.
How should the Developer overcome this problem?
A . Use Test.getStandardPricebookId() to get the standard PriceBook I
C . Use @IsTest(SeeAllData=true) and delete the existing standard PriceBook.
D . Use Test.loadData() and a Static Resource to load a standard Pricebook.
E . Use @TestVisible to allow the test method to see the standard PriceBook.
Answer: A
Latest DEX-450 Practice Questions with 456 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments