How should the Developer overcome this problem?

While writing a test class that covers an OpportunityLineItem 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 CRT-450 Dumps Valid Version with 372 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments