Basics of Writing a Salesforce Test Class
In this blog post, I will cover some basic concepts while writing your Test class in Salesforce.I will be using some code snippets to illustrate : [sourcecode lang=”Java”]@isTest(seeAllData=false)private class Test_CountContactOfAccount {//Methodstatic testMethod void CountContactOfAccountUnitTest() {}}[/sourcecode] seeAllData: Using this annotation isTest(seeAllData=true) you will be able to access the records in your organization.If you are fetching records […]
Basics of Writing a Salesforce Test Class Read More »
