How do I create a simple test class in Salesforce?
How do I create a simple test class in Salesforce? From Setup, enter Apex Classes in the Quick Find box, then select Apex Classes and click New. In the class editor, add this test class definition, and then click Save. This class is defined using the @isTest annotation. How do I write a test class in Salesforce? The key points while writing a test class are:You have to start your class with @isTest annotation, then only Salesforce will consider this class as test class.Keep your class as Private, and the best practice is to name your test class as your...