+ Start a Discussion
viswsanathviswsanath 

why did we are mention @symbol in test class and also why did we have mentioned istest(seealldata=true ) in test class ?Could you pls expalin me ?what is the reason ?

HI ALL,

why did we are mention @symbol in test class and also why did we have mentioned istest(seealldata=true ) in test class ?Could you pls expalin me ?what is the reason ?

Thanks,
Viswa.
Sagar PareekSagar Pareek
@istest is used to  make the salesforce apex code compiler know that your class is a test class . seealldata=true lets the test class access org records. 
Denis VakulishinDenis Vakulishin
Just for addition - @ symbol means annotation, that's cames from Java world. You can learn about them here https://docs.oracle.com/javase/tutorial/java/annotations/
viswsanathviswsanath
Thank you so very much DENIS