Which three statements are true regarding the @istest annotation? - ProProfs Discuss
Topics-
Products +
     

Which three statements are true regarding the @istest annotation?



A. Products and pricebooks are visible in a test even if a class is annotated @istest (seealldata=false)
B. A method annotated @istest (seealldata=false) in a class annotated @istest (seealladata=true) has access to all org data
C. A method annotated @istest (seealldata=true) in a class annotated @istest (seealladata=false) has access to all org data
D. Profiles are visible in a test even if a class is annotated @istest (seealldata=false)
E. A class containing test methods counts toward the apex code liit regardless of any @istest annotation

This question is part of Salesforce Platform Developer Coding Test! Trivia Quiz
Asked by Marcofrancesconuzzo, Last updated: Nov 05, 2019

+ AnswerRequest Answer
1
...

3 Answers

akshay.khunteta

Akshay.khunteta

Answered on Jul 24, 2019

B. A method annotated @istest (seealldata=false) in a class annotated @istest (seealladata=true) has access to all org data
C. A method annotated @istest (seealldata=true) in a class annotated @istest (seealladata=false) has access to all org data
D. Profiles are visible in a test even if a class is annotated @istest (seealldata=false)

1
 Reply

shilpaads

Shilpaads

Answered on Nov 05, 2019

B. A method annotated @istest (seealldata=false) in a class annotated @istest (seealladata=true) has access to all org data
C. Amethod annotated @istest (seealldata=true) in a class annotated @istest (seealladata=false) has access to all org data
D. Profiles are visible in a test even if a class is annotated @istest (seealldata=false)

 Reply

marcofrancesconuzzo

Marcofrancesconuzzo

Answered on Jul 12, 2019

A method annotated @istest (seealldata=false) in a class annotated @istest (seealladata=true) has access to all org data
Profiles are visible in a test even if a class is annotated @istest (seealldata=false)
Aclass containing test methods counts toward the apex code liit regardless of any @istest annotation
 Reply

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.